On Jan 18, 2009, at 10:34 PM, Roger Lovelock wrote:

> Some advice on the 'dabo' way to do this!
>
> In my bizObj I have a beforeDelete method where I want to stop the  
> deletion if a reference to the record occurs in another table (ie  
> this table is membership types - I don't want to allow deletion of a  
> membership type if a member exists with this type on their record).


        Generally that's handled by referential integrity rules in the  
database. If you aren't using a RDBMS that supports this, then your  
approach is fine. As far as the connection goes, bizobjs have a  
'protected' attribute named 'self._connection' that you can use.


-- Ed Leafe




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to