mirror of
https://github.com/werkraum-media/events.git
synced 2024-12-23 04:06:08 +01:00
23 lines
521 B
PHP
23 lines
521 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace WerkraumMedia\Events\Domain\Repository;
|
|
|
|
use TYPO3\CMS\Extbase\Persistence\Repository;
|
|
use WerkraumMedia\Events\Domain\Model\Location;
|
|
|
|
final class LocationRepository extends Repository
|
|
{
|
|
public function findOneByGlobalId(string $globalId): ?Location
|
|
{
|
|
$query = $this->createQuery();
|
|
|
|
return $query
|
|
->matching($query->equals('globalId', $globalId))
|
|
->setLimit(1)
|
|
->execute()
|
|
->getFirst()
|
|
;
|
|
}
|
|
}
|