src/Bundle/DoctrineILikeBundle.php line 18

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Blast Project package.
  4.  *
  5.  * Copyright (C) 2015-2017 Libre Informatique
  6.  *
  7.  * This file is licenced under the GNU LGPL v3.
  8.  * For the full copyright and license information, please view the LICENSE.md
  9.  * file that was distributed with this source code.
  10.  */
  11. namespace App\Bundle;
  12. use Symfony\Component\HttpKernel\Bundle\Bundle;
  13. use Doctrine\ORM\Query;
  14. class DoctrineILikeBundle extends Bundle
  15. {
  16.     public function boot()
  17.     {
  18.         parent::boot();
  19.         $this->container
  20.             ->get('doctrine.orm.entity_manager')
  21.             ->getConfiguration()
  22.             ->setDefaultQueryHint(
  23.                 Query::HINT_CUSTOM_OUTPUT_WALKER,
  24.                 'App\Doctrine\CustomSqlWalker'
  25.             );
  26.     }
  27. }