Пример #1
0
 public function before(BeforeEvent $event)
 {
     $disp = $event->getEventDispatcher();
     // hook all standard filtration subscribers
     $disp->addSubscriber(new Doctrine\ORM\QuerySubscriber());
     $disp->addSubscriber(new PropelQuerySubscriber());
 }
 public function before(BeforeEvent $event)
 {
     $disp = $event->getEventDispatcher();
     // hook all standard sortable subscribers
     $disp->addSubscriber(new Doctrine\ORM\QuerySubscriber());
     $disp->addSubscriber(new Doctrine\ODM\MongoDB\QuerySubscriber());
 }
 public function before(BeforeEvent $event)
 {
     $disp = $event->getEventDispatcher();
     // hook all standard subscribers
     $disp->addSubscriber(new ArraySubscriber());
     $disp->addSubscriber(new Doctrine\ORM\QueryBuilderSubscriber());
     $disp->addSubscriber(new Doctrine\ORM\QuerySubscriber());
     $disp->addSubscriber(new Doctrine\ODM\MongoDB\QueryBuilderSubscriber());
     $disp->addSubscriber(new Doctrine\ODM\MongoDB\QuerySubscriber());
     $disp->addSubscriber(new Doctrine\CollectionSubscriber());
     $disp->addSubscriber(new PropelQuerySubscriber());
     $disp->addSubscriber(new SolariumQuerySubscriber());
 }