Re: hasMany: check for depending objects when deleting and deny?

2011-02-24 Thread Joshua Muheim
I created a behavior that automatically does just this. I wrote about it in my blog: Automatically prevent records with depending children from being deleted: http://josh.ch/wordpress/?p=80 I hope somebody will this useful. Please comment on it, I'm happy to optimize it if needed. :-) On Tue, Oc

Re: hasMany: check for depending objects when deleting and deny?

2010-10-19 Thread Joshua Muheim
So it seems there's no such functionality yet? I will try to create a component or something for this... On Thu, Sep 16, 2010 at 12:17 PM, Jeremy Burns | Class Outfit wrote: > Go directly to the source; use referential integrity in InnoDB. > > Jeremy Burns > Class Outfit > > jeremybu...@classoutf

Re: hasMany: check for depending objects when deleting and deny?

2010-09-16 Thread Jeremy Burns | Class Outfit
Go directly to the source; use referential integrity in InnoDB. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 16 Sep 2010, at 11:12, psybear83 wrote: > Hi all > > I know that I can use the dependent flag to automatically delete all > the associated model o

hasMany: check for depending objects when deleting and deny?

2010-09-16 Thread psybear83
Hi all I know that I can use the dependent flag to automatically delete all the associated model objects. But I'd rather have an option to prevent deletion of the object as long as it's having other depending objects. Is there an easy way to do this? Thanks a lot Josh Check out the new CakePHP