HollerLondon/sfDoctrineModeratablePlugin — Issue #3: Update README add dql callbacks
Author: nixilla
Created: 2011-11-21 16:18:34+00:00
State: open

I always forget what option on Doctrine needs to be enabled, so please add this section into your README file

Remember, in order for the dql callbacks to be executed we must enable an attribute first.

class frontendConfiguration extends sfApplicationConfiguration
{
public function configure()
{
}

public function configureDoctrine(Doctrine_Manager $manager)
{
$manager->setAttribute(Doctrine_Core::ATTR_USE_DQL_CALLBACKS, true);
}
}

Reference: http://www.doctrine-project.org/blog/cookbook-recipe-relation-dql-behavior