Monday, May 25, 2009

Re: Problem with retrieving data with relationships

ahhh awesome thanks man... still getting to grips with cakephp here!


On Sat, May 23, 2009 at 8:45 PM, Ricky Paz <rickypaz@gmail.com> wrote:

Hi,

You have to use belongsTo and hasMany for 1-n relationship, and not
hasOne and hasMany. In your PropertiesModel, put $belongsTo =
'Seller", and, inside SellerModel, put hasMany = 'Property'.



--~--~---------~--~----~------------~-------~--~----~
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: