PHP Symfony Doctrine - How/where to enable DQL Callbacks?

El Xando

New Member
http://www.doctrine-project.org/documentation/manual/1_0/ru/behaviors:core-behaviors:softdelete\[quote\] You are required to enable DQL callbacks in order for all executed queries to have the dql callbacks executed on them. In the SoftDelete behavior they are used to filter the select statements to exclude all records where the deleted_at flag is set with an additional WHERE condition.\[/quote\]I have set a model behaviour to SoftDelete, and when I \[code\]$Model->delete()\[/code\] it, the actual db entry gets altered as expected.Unfortunately, \[code\]Doctrine::getTable('Model')->findAll()\[/code\] still includes the record, where \[code\]deleted_at\[/code\] is set.Looking through the documentation, I feel, it has to do with DQL Callbacks not being enabled in symfony. Googling didn't help.How and where do I enable DQL callbacks in Symfony?Thanks
 
Back
Top