Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic

Re^2: DBIx::Class::Schema::Loader and on_delete/cascade_delete

by petdance (Parson)
on Feb 15, 2012 at 19:03 UTC ( #954043=note: print w/replies, xml ) Need Help??

in reply to Re: DBIx::Class::Schema::Loader and on_delete/cascade_delete
in thread DBIx::Class::Schema::Loader and on_delete/cascade_delete

Thanks, Ben. What confuses me is why they are set differently.

The way I understand this is that cascade_delete => 0 tells DBIC that it's not necessary for DBIC to delete the notifications manually, because Postgres will have done it automatically. That makes sense.

But then why is there the on_delete => "CASCADE" at the notification level? What does DBIC do with that bit of knowledge?


  • Comment on Re^2: DBIx::Class::Schema::Loader and on_delete/cascade_delete

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://954043]
[Discipulus]: oh and dont miss my last poetry!
[marioroy]: Hello all. After several attempts, am able to move forward and will soon release a Parallel:: ForkManager compatible MCE::Hobo:: Manager, also MCE::Hobo::Simple, and refactored MCE::Hobo engine supporting multiple instances. Wait works beautifully.

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (11)
As of 2017-05-26 08:22 GMT
Find Nodes?
    Voting Booth?