on 5/22/02 7:06 PM, "Will Glass-Husain" <[EMAIL PROTECTED]> wrote:
> > Hi, > > Is there an easy way to implement recursive deletes in Torque? > > In other words, if table A has a foreign key reference to table B, and I > delete > a record in B, it should first delete all referencing records in A. > > I find myself implementing this for each new database structure. I keep > finding amazing (but mostly undocumented) features embedded in Torque. Before > I implement this again, might the capability already be present? > > Thanks in advance, WILL I don't believe it is. One thing to consider is that some databases (Oracle) have this feature built into them (through PSQL I think). So, adding it to Torque would have to be done with consideration because you wouldn't want it to conflict with what the database is doing. Best bet is to consider this action as business logic and simply code it into the OM objects. -jon -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
