Sunday, July 26, 2009

Re: HABTM

thanx majna and Martin

On Sat, Jul 25, 2009 at 6:45 PM, Martin Kirchgessner <martin.kirch@gmail.com> wrote:

If you always want the same Course fields returned by any Student
request, you may also use the "fields" option of the association
definition.

see http://book.cakephp.org/view/83/hasAndBelongsToMany-HABTM


Martin

On 24 juil, 14:52, Farjad <habib.far...@gmail.com> wrote:
> i m defining a habtm relation between students table and courses table
>
> now i want that when i call students to fetch the data particular
> fields of course table are fetched.
>
> currently all the fields of course table are fetched.
>
> can someone help or guide????




--
Farjad Habib
BS 2011
LUMS

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: