X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/adb446c3086f97e4832043d71de83959d7769f11..118fc8a9aab25928ded9316835b4597eda2f8326:/Repository/SlotRepository.php?ds=sidebyside diff --git a/Repository/SlotRepository.php b/Repository/SlotRepository.php index 0e440b8..d2b6eb3 100644 --- a/Repository/SlotRepository.php +++ b/Repository/SlotRepository.php @@ -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);