[symfony-users] 2 Classes for each Database Table, what to put in each one?

2010-12-14 Thread Andre Lopes
There are 2 classes for each Table, for example: JobeetJob.class.php and JobeetJobTable.class.php What is the difference between the two, what I must put in each one? Can I find an answer for this online? Best Regards, -- If you want to report a vulnerability issue on symfony, please send it

Re: [symfony-users] 2 Classes for each Database Table, what to put in each one?

2010-12-14 Thread Stefan Paschke
yes you can: http://www.symfony-project.org/gentle-introduction/1_4/en/08-Inside-the-Model-Layer-Doctrine#chapter_08_sub_object_and_table_classes On Dec 14, 2010, at 1:02 PM, Andre Lopes wrote: There are 2 classes for each Table, for example: JobeetJob.class.php and JobeetJobTable.class.php

Re: [symfony-users] 2 Classes for each Database Table, what to put in each one?

2010-12-14 Thread Andre Lopes
Hi, I have read the text, but I can't figure out the following: In the example with Jobeet website: I have the public function getActiveJobs() in the JobeetJobTable.class.php and then I have the public function getActiveJobs() in the JobeetCategory.class.php What is the reason for this? In

Re: [symfony-users] 2 Classes for each Database Table, what to put in each one?

2010-12-14 Thread Alex Pilon
getActiveJobs() is on the JobeetJobTable class because in the context of calling that method, those jobs aren't attached to any other entity. You have no data currently loaded and you want to load only active ones. The category getActiveJobs() is working off the basis of getting active jobs *in

Re: [symfony-users] 2 Classes for each Database Table, what to put in each one?

2010-12-14 Thread Andre Lopes
Thanks for the reply. No I'm getting it! Best Regards, On Tue, Dec 14, 2010 at 12:16 PM, Stefan Paschke symfony.pasc...@gmail.comwrote: yes you can: http://www.symfony-project.org/gentle-introduction/1_4/en/08-Inside-the-Model-Layer-Doctrine#chapter_08_sub_object_and_table_classes On Dec