Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,32 @@ Due to the new embed form enhancements:
* You cannot added the same `sfValidatorErrorSchema` instance twice or more into an `sfValidatorErrorSchema`.
* The method `sfValidatorErrorSchema::addErrors` only accept an `sfValidatorErrorSchema` instance as argument.
+ The `sfValidatorErrorSchema` constructor no longer accept an array of errors as second argument.

Doctrine & Project configuration
--------------------------------

Previously, you were able to configure doctrine in your `/config/ProjectConfiguration.class.php` using the method `configureDoctrine`.
This method isn't called anymore. You now need to connect to the `doctrine.configure` event:

```php
<?php
// ...

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