i’m working on a symfony project and i generated a set of model classes called Base<name>.php, <name>.php, <name>Peer.php and Base<name>Peer.php
I did the famous jobeet tutorial and i still have doubts about locating functions in these files of the model. So my question is:
What kind of functions i have to put in which file?
or expressed other way
How i know where to locate a function in these files?
thank you very much
You should never edit the files prefixed with
Base, they can be overwritten if you change something in your schema and regenerate these files.The custom methods you are writing yourself should be in the
Peerclass.To easily locate a method, I use a good IDE like PDT that parses the files and allows searching methods.