]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Repository/SlotRepository.php
Replace _em now private with manager member variable
[airbundle] / Repository / SlotRepository.php
index 2b40ebad35e012cc6709e5937feddf5349d29528..590f6c0f1da606ebf3fb438699b70f26d0cf7716 100644 (file)
@@ -27,7 +27,7 @@ class SlotRepository extends Repository {
        public function findAllWithTranslatedTitle(): array {
                //Set the request from quoted table name
                //XXX: this allow to make this code table name independent
-               $req = 'SELECT s.id, s.title FROM RapsysAirBundle:Slot AS s';
+               $req = 'SELECT s.id, s.title FROM Rapsys\AirBundle\Entity\Slot AS s';
 
                //Replace bundle entity name by table name
                $req = str_replace($this->tableKeys, $this->tableValues, $req);
@@ -44,7 +44,7 @@ class SlotRepository extends Repository {
                        ->addIndexByScalar('id');
 
                //Fetch result
-               $res = $this->_em
+               $res = $this->manager
                        ->createNativeQuery($req, $rsm)
                        ->getResult();