Hi,

On Sat, Mar 6, 2010 at 1:07 AM, Bill Moseley <[email protected]> wrote:
> First, is there a way to globally disable cascade deletes?  I know I can
> add cascade_delete => 0 to the relationships, but I never want cascade
> deletes in the ORM (I have a database that does that).

I did that once for exactly the same reasons. Created a DBIC component
that overrides add_relationship(). The fourth parameter is the hashref
with the options, set cascade_delete => 0 and call the next method.

Then in the load_components of your base source class, use it.

Bye,
-- 
Pedro Melo
http://www.simplicidade.org/
xmpp:[email protected]
mailto:[email protected]

_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/[email protected]

Reply via email to