2019-07-18 13:44:19 +02:00
|
|
|
<?php
|
2021-01-07 08:50:43 +01:00
|
|
|
|
2023-11-27 10:04:42 +01:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2023-11-09 10:27:43 +01:00
|
|
|
namespace WerkraumMedia\Events\Domain\Repository;
|
2019-07-18 13:44:19 +02:00
|
|
|
|
2021-01-07 08:54:42 +01:00
|
|
|
/*
|
2019-07-18 13:44:19 +02:00
|
|
|
* This file is part of the TYPO3 CMS project.
|
|
|
|
*
|
|
|
|
* It is free software; you can redistribute it and/or modify it under
|
|
|
|
* the terms of the GNU General Public License, either version 2
|
|
|
|
* of the License, or any later version.
|
|
|
|
*
|
|
|
|
* For the full copyright and license information, please read the
|
|
|
|
* LICENSE.txt file that was distributed with this source code.
|
|
|
|
*
|
|
|
|
* The TYPO3 project - inspiring people to share!
|
|
|
|
*/
|
|
|
|
|
2021-01-07 08:54:42 +01:00
|
|
|
use TYPO3\CMS\Extbase\Persistence\Repository;
|
2024-08-19 15:22:56 +02:00
|
|
|
use WerkraumMedia\Events\Domain\Model\Organizer;
|
2019-07-18 13:44:19 +02:00
|
|
|
|
2023-11-27 10:04:42 +01:00
|
|
|
final class OrganizerRepository extends Repository
|
2019-07-18 13:44:19 +02:00
|
|
|
{
|
2024-08-19 15:22:56 +02:00
|
|
|
public function findOneByName(string $name): ?Organizer
|
|
|
|
{
|
|
|
|
$organizer = $this->findOneBy(['name' => $name]);
|
|
|
|
|
|
|
|
if ($organizer instanceof Organizer) {
|
|
|
|
return $organizer;
|
|
|
|
}
|
|
|
|
|
|
|
|
return null;
|
|
|
|
}
|
2021-01-07 08:50:43 +01:00
|
|
|
}
|