Hi. The hasOne association has 'dependent' flag that, if set to true, deletes the associated model when the current one is deleted. The problem is that, normally, the associated model/table will have a foreign key constraint to the model/table being deleted. Since the current model is deleted first Cake aborts with an constraint violation error.
I can delete the associated model first in beforeDelete() but i think that should be done automatically by Cake or maybe i'm missing something. What do you guys think? Thanks in advance. -- Gonçalo Marrafa <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
