]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Repository/SlotRepository.php
Rename rapsysair:calendar2 command to rapsysair:calendar
[airbundle] / Repository / SlotRepository.php
index 0e440b89b2935ec572635d0652de07e8646999bf..d2b6eb36a1fd290aaaff580e065dc760479ba7a9 100644 (file)
@@ -13,10 +13,12 @@ namespace Rapsys\AirBundle\Repository;
 
 use Doctrine\ORM\Query\ResultSetMapping;
 
+use Rapsys\AirBundle\Repository;
+
 /**
  * SlotRepository
  */
-class SlotRepository extends EntityRepository {
+class SlotRepository extends Repository {
        /**
         * Find slots with translated title
         *
@@ -25,7 +27,7 @@ class SlotRepository extends EntityRepository {
        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);