Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- How to set Doctrine 1.2 ATTR_CASCADE_SAVES off in databases.yml?
- all:
- doctrine:
- class: sfDoctrineDatabase
- param:
- dsn: xxxxx
- username: xxxxx
- password: xxxxx
- attributes:
- cascade_saves: false
- Doctrine_Manager::getInstance()->getAttribute(Doctrine::ATTR_CASCADE_SAVES);
- public function configureDoctrineConnectionDoctrine(Doctrine_Connection $connection)
- {
- $connection->setAttribute('CASCADE_SAVES', false);
- }
Add Comment
Please, Sign In to add comment