for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Repository;
use Chamilo\CoreBundle\Entity\ValidationToken;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
class ValidationTokenRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
parent::__construct($registry, ValidationToken::class);
}
public function save(ValidationToken $entity, bool $flush = false): void
$this->getEntityManager()->persist($entity);
if ($flush) {
$this->getEntityManager()->flush();
public function remove(ValidationToken $entity, bool $flush = false): void
$this->getEntityManager()->remove($entity);