in reply to Class::DBI many to many delete
Class::DBI doesn't support Many to Many right now. The module's author does say that you can manually set up the relationships and get some measure of control by writing a Class::DBI::Cascade::Plugin::Nullify and inserting it into the relationship:
WebR::M::CDBI::Datatype->has_many(children=>['WebR::M::CDBI::DatatypeR +elationship'=>'child"], 'parent', { cascade => 'Class::DBI::Cascade::Plugin::Nullify' });
Try it and see if that works. I hope this helps.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Class::DBI many to many delete
by CassJ (Sexton) on Jul 18, 2006 at 00:12 UTC |