Hi,

On Sat, Mar 6, 2010 at 1:07 AM, Bill Moseley <mose...@hank.org> 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:m...@simplicidade.org
mailto:m...@simplicidade.org

_______________________________________________
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/dbix-class@lists.scsys.co.uk

Reply via email to