Re: validating deleting an object with relationship

2010-01-19 Thread Chuck Hill
On Jan 18, 2010, at 11:51 PM, Johan Henselmans wrote: On 19 jan 2010, at 01:54, Chuck Hill wrote: On Jan 18, 2010, at 4:49 PM, Johan Henselmans wrote: I want to delete an EO object only if some data is not available in one of its relationships. Can you not use a delete rule? Deny is

validating deleting an object with relationship

2010-01-18 Thread Johan Henselmans
I want to delete an EO object only if some data is not available in one of its relationships. validateForDelete() can not be used, because before that us called the relations have already been obliterated. mightDelete() gives the required info, but does not raise a validation exception.

Re: validating deleting an object with relationship

2010-01-18 Thread Chuck Hill
On Jan 18, 2010, at 4:49 PM, Johan Henselmans wrote: I want to delete an EO object only if some data is not available in one of its relationships. Can you not use a delete rule? Deny is what you want. validateForDelete() can not be used, because before that us called the relations

Re: validating deleting an object with relationship

2010-01-18 Thread Johan Henselmans
On 19 jan 2010, at 01:54, Chuck Hill wrote: On Jan 18, 2010, at 4:49 PM, Johan Henselmans wrote: I want to delete an EO object only if some data is not available in one of its relationships. Can you not use a delete rule? Deny is what you want. No, at least from my understanding