File: /var/www/dvpis2026/dvpis.kaunokolegija.lt/src/Repository/PositionRepository.php
<?php
namespace App\Repository;
use Doctrine\ORM\EntityRepository;
/**
* PositionRepository
*
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
*/
class PositionRepository extends EntityRepository
{
public function getAllByName()
{
return $this->getEntityManager()
->createQuery(
"SELECT p
FROM App:Position p INDEX BY p.positionName
ORDER BY p.positionName ASC"
)
->getResult();
}
}