2022-08-02 15:56:18 +02:00
|
|
|
<?php
|
|
|
|
|
2023-11-09 10:27:43 +01:00
|
|
|
namespace WerkraumMedia\Events\Domain\Repository;
|
2022-08-02 15:56:18 +02:00
|
|
|
|
|
|
|
use TYPO3\CMS\Extbase\Persistence\Repository;
|
2023-11-09 10:27:43 +01:00
|
|
|
use WerkraumMedia\Events\Domain\Model\Location;
|
2022-08-02 15:56:18 +02:00
|
|
|
|
|
|
|
class LocationRepository extends Repository
|
|
|
|
{
|
2023-07-06 12:39:47 +02:00
|
|
|
public function findOneByGlobalId(string $globalId): ?Location
|
|
|
|
{
|
|
|
|
$query = $this->createQuery();
|
|
|
|
|
|
|
|
return $query
|
|
|
|
->matching($query->equals('globalId', $globalId))
|
|
|
|
->setLimit(1)
|
|
|
|
->execute()
|
|
|
|
->getFirst()
|
|
|
|
;
|
|
|
|
}
|
2022-08-02 15:56:18 +02:00
|
|
|
}
|