Nevermind I figured it out.  Day 12 showed an example that added the
following method to ProjectConfiguration.class.php:
public function configureDoctrine(Doctrine_Manager $manager)
{
  $manager->setAttribute(Doctrine_Core::ATTR_USE_DQL_CALLBACKS,
true);
}

On Dec 24, 8:34 am, mstralka <[email protected]> wrote:
> In Advent Calendar Day 11 (http://www.symfony-project.org/
> advent_calendar/11/en), there is the following tip:
> In order for the preDqlDelete() method to be invoked you must enable
> an attribute. The DQL callbacks are off by default due to them costing
> a little extra. So if you want to use them, you must enable them.
> $manager->setAttribute(Doctrine_Core::ATTR_USE_DQL_CALLBACKS, true);
>
> Where do I add the $manager->setAttribute(...) line?  Does it go in
> ProjectConfiguration?  If so, where does $manager come from?
>
> Thanks

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.


Reply via email to