X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/991dd47b40783c56aee07179f42940cbbbae46bd..HEAD:/Repository/SlotRepository.php diff --git a/Repository/SlotRepository.php b/Repository/SlotRepository.php index bd356f7..d2b6eb3 100644 --- a/Repository/SlotRepository.php +++ b/Repository/SlotRepository.php @@ -13,6 +13,8 @@ namespace Rapsys\AirBundle\Repository; use Doctrine\ORM\Query\ResultSetMapping; +use Rapsys\AirBundle\Repository; + /** * SlotRepository */ @@ -25,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);