On Sep 1, 5:52 am, stefan <[email protected]> wrote:

> I am reading the doctrine edition. In day 12, it says "But the
> JobeetJob class already has a getJobeetCategory() method that returns
> the related category object". I opened lib/model/doctrine/
> JobeetJob.class.php and I can't see a getJobeetCategory(). Neither in
> the base class. Although it works, meaning %%jobeet_category%% is
> replaced with the right category.
> Where can I see (and possibly modify) this method, getJobeetCategory

Since you have defined a relationship between the Job and Category
models, symfony generated these related object getters for you.

See 
http://www.symfony-project.org/book/1_2/08-Inside-the-Model-Layer#chapter_08_sub_retrieving_related_records

If you want to modify those functions, you should override them in
your peer classes.



--

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to