Cuold someone explain me the difference between the Doctrine auto generated files <ModelName>.class.php
and <ModelName>Table.class.php
?
For example in the Jobeet tutorial there's JobeetJob.class.php and JobeetJobTable.class.php.
I don't understand the role of each file and where I have to put methods for the model class.
XXX.class file holds Doctrine_Record descendant, which is intended to operate on a single record. Save, create, edit etc. XXXTable.class.php holds Doctrine_Table descendant, which is intended to operate on a whole table. Searching for records for example.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With