If you don't set 'dependent' nothing happens to the profile - when you
delete the progile entries will remain.

Also when you create a User - it wont automatically create the
UserProfile record until you explicitly save the Profile, regardless
of whether dependent is true or false.

Geoff
--
http://lemoncake.wordpress.com

On Aug 27, 6:18 am, rtconner <[EMAIL PROTECTED]> wrote:
> > 1) If I define a hasOne relationship.The manual says: If I set
> > 'dependent' to true, the associated row is also deleted.
> > But what happens contrariwise?
>
> You'd have to define a belongsTo in the other model with dependent set
> to true to get it to work both ways.


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