for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the login-cidadao project or it's bundles.
*
* (c) Guilherme Donato <guilhermednt on github>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace LoginCidadao\CoreBundle\Entity;
use LoginCidadao\CoreBundle\Model\PersonInterface;
* AccountRecoveryDataRepository
* This class was generated by the Doctrine ORM. Add your own custom
* repository methods below.
class AccountRecoveryDataRepository extends \Doctrine\ORM\EntityRepository
{
public function findByPerson(PersonInterface $person): ?AccountRecoveryData
/** @var AccountRecoveryData|null $data */
$data = $this->findOneBy(['person' => $person]);
return $data;
}