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