CassJ has asked for the wisdom of the Perl Monks concerning the following question:
When I try to delete a datafile, the cascade delete appears to work for the entries in the relationship table where that datafile is parent, but not where it is child. I had assumed that both would be deleted. Is this how it's supposed to work? Am I missing something obvious? Thanks, CxxWebR::M::CDBI::DatatypeRelationship->has_a(parent=>'WebR::M::CDBI::Dat +atype'); WebR::M::CDBI::DatatypeRelationship->has_a(child=>'WebR::M::CDBI::Data +type'); WebR::M::CDBI::Datatype->has_many(parents=>['WebR::M::CDBI::DatatypeRe +lationship'=> 'parent'], 'child'); WebR::M::CDBI::Datatype->has_many(children=>['WebR::M::CDBI::DatatypeR +elationship'=>'child'], 'parent');
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Class::DBI many to many delete
by Khen1950fx (Canon) on Jul 17, 2006 at 23:03 UTC | |
by CassJ (Sexton) on Jul 18, 2006 at 00:12 UTC | |
|
Re: Class::DBI many to many delete
by perrin (Chancellor) on Jul 17, 2006 at 15:39 UTC | |
by CassJ (Sexton) on Jul 17, 2006 at 23:49 UTC |