Hello, I've developed a small component that overloads the delete function
to protect against deleting a referred row.
On the scheme objects I'm using it like that:
__PACKAGE__->load_components(qw/ProtectRelationships PK::Auto Core/);
__PACKAGE__->protect_relationship("my_relationship");
On the recordsets when I call delete_all it uses the
ProtectRelationships::delete as expected, but if I call directly delete the
DBIx::Class:ResultSet::delete will be used.
I've been working and searching why it behaves this way, but I didnt' get a
clue.
Please, does anybody have a pointer to some
documentation/code/example/whatever which can help me?
I've read almost all DBIx::Class::Manual and many of the built-in
components, and some third-party ones, but to me it seems that my component
is ok (and of course, it is not :)).
Thank you
Eduard Giménez
CAPSiDE
_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/[email protected]/