mirror of
https://github.com/werkraum-media/events.git
synced 2024-12-23 12:46:09 +01:00
Daniel Siepmann
a9f3f108e3
The vendor was renamed from `wrm` to `werkraummedia`. And the namespace vendor was renamed from `Wrm` to `WerkraumMedia`. That way all references to PHP classes as well as the package name itself need to be adjusted.
21 lines
489 B
PHP
21 lines
489 B
PHP
<?php
|
|
|
|
namespace WerkraumMedia\Events\Domain\Repository;
|
|
|
|
use TYPO3\CMS\Extbase\Persistence\Repository;
|
|
use WerkraumMedia\Events\Domain\Model\Location;
|
|
|
|
class LocationRepository extends Repository
|
|
{
|
|
public function findOneByGlobalId(string $globalId): ?Location
|
|
{
|
|
$query = $this->createQuery();
|
|
|
|
return $query
|
|
->matching($query->equals('globalId', $globalId))
|
|
->setLimit(1)
|
|
->execute()
|
|
->getFirst()
|
|
;
|
|
}
|
|
}
|