src/CourseBundle/Repository/CThematicAdvanceRepository.php
<?php
declare(strict_types=1);
/* For licensing terms, see /license.txt */
namespace Chamilo\CourseBundle\Repository;
use Chamilo\CoreBundle\Traits\NonResourceRepository;
use Chamilo\CourseBundle\Entity\CThematicAdvance;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
final class CThematicAdvanceRepository extends ServiceEntityRepository
{
use NonResourceRepository;
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, CThematicAdvance::class);
}
public function delete(CThematicAdvance $resource): void
{
$this->getEntityManager()->remove($resource);
$this->getEntityManager()->flush();
}
}