In your association, set the 'dependent' key to true, and the associated rows will be deleted with the parent.
http://manual.cakephp.org/chapter/models anandrv wrote: > Hi all, > i am having two tables one is admin table fields is given below > id,name,address,homephone > and phonebook table filels is > id,username,user paddword,adminid. > the admin id is admin table "id" field. > if i want to delete the admin table one id means at the same time the > phonebooks table adminid fileds also i want to delete please give me a > advice please thanks and regards --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
