Skip to content
Karoly Gossler edited this page Feb 5, 2024 · 13 revisions

From 1.4.x to 1.5.x

  • Create an empty composer.json if it does not already exist.
  • If it already exists, you can install symfony1 with composer require friendsofsymfony1/symfony1 "^1.5".
  • If your application uses doctrine and you have configured doctrine by calling the configureDoctrineEvent or configureDoctrine methods in the ProjectConfiguration file, you must subscribe to doctrine.configure even in the setup method:
class ProjectConfiguration extends sfProjectConfiguration
{
  public function setup()
  {
    // ...

    $this->dispatcher->connect('doctrine.configure', array($this, 'configureDoctrineEvent'));
  }

  public function configureDoctrineEvent(sfEvent $event)
  {
    $manager = $event->getSubject();

    // configure what ever you want on the doctrine manager
    $manager->setAttribute(Doctrine_Core::ATTR_USE_DQL_CALLBACKS, false);
  }
}
Clone this wiki locally