21 lines
662 B
PHP
Executable File
21 lines
662 B
PHP
Executable File
<?php declare(strict_types = 1);
|
|
|
|
namespace App\Model\Database\Repository;
|
|
|
|
use App\Model\Database\Entity\Translation;
|
|
|
|
/**
|
|
* @method Translation|NULL find($id, ?int $lockMode = NULL, ?int $lockVersion = NULL)
|
|
* @method Translation|NULL findOneBy(array $criteria, array $orderBy = NULL)
|
|
* @method Translation[] findAll()
|
|
* @method Translation[] findBy(array $criteria, array $orderBy = NULL, ?int $limit = NULL, ?int $offset = NULL)
|
|
* @extends AbstractRepository<Translation>
|
|
*/
|
|
class TranslationRepository extends AbstractRepository
|
|
{
|
|
public function findOneByEmail(string $email): ?Translation
|
|
{
|
|
return $this->findOneBy(['email' => $email]);
|
|
}
|
|
}
|