src/CoreBundle/Repository/SettingsCurrentRepository.php
<?php
declare(strict_types=1);
/* For licensing terms, see /license.txt */
namespace Chamilo\CoreBundle\Repository;
use Chamilo\CoreBundle\Entity\SettingsCurrent;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
class SettingsCurrentRepository extends ServiceEntityRepository
{
public function __construct(ManagerRegistry $registry)
{
parent::__construct($registry, SettingsCurrent::class);
}
public function update(SettingsCurrent $setting): void
{
$this->getEntityManager()->persist($setting);
$this->getEntityManager()->flush();
}
}