Hi Joel,

CakePHP makes this very easy for you. I'm assuming you've setup the
models so that User hasMany Preference and Preference belongsTo User.

To have it that CakePHP automatically deletes all the Preference
entries when you delete the parent User just set 'dependent' to true in
the hasMany array for User.

Cheers
Matt


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