How to set Doctrine 1.2 ATTR_CASCADE_SAVES off in databases.yml?

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);
}

Comments

Popular posts from this blog

How to change this to <%Html.ActionLink%> in my asp.net mvc application ?