HI Andrew,

Yes you can do that!
But you must have "Post model", "Category model" and "Locality model".
Then you put:

var $hasOne = array ('Category'=> array(), 'Locality'=>array());

in your Post model.

After that you write: " var $belongsTo = 'Post'; " in your two other
models.

Hope this helps...

Avairet


On 17 fév, 23:53, andrewharlan <[EMAIL PROTECTED]> wrote:
> Can any1 help me with this? i understand Post $hasone category and
> $hasone locality. but can i set category to $belongsto Post and
> locality as $belongsto Post ??
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to