Hi Monks,
Using CDBI, I have the following relationships defined:
WebR::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');
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,
Cxx
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.