SHARE
TWEET

Untitled

a guest Aug 18th, 2018 86 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. How to set Doctrine 1.2 ATTR_CASCADE_SAVES off in databases.yml?
  2. all:
  3.   doctrine:
  4.     class: sfDoctrineDatabase
  5.     param:
  6.       dsn:      xxxxx
  7.       username: xxxxx
  8.       password: xxxxx
  9.       attributes:
  10.          cascade_saves: false
  11.    
  12. Doctrine_Manager::getInstance()->getAttribute(Doctrine::ATTR_CASCADE_SAVES);
  13.    
  14. public function configureDoctrineConnectionDoctrine(Doctrine_Connection $connection)
  15. {
  16.   $connection->setAttribute('CASCADE_SAVES', false);
  17. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top