Guest User

Untitled

a guest
Aug 18th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment