for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Uxmp\Core\Orm\Repository;
use Doctrine\ORM\EntityRepository;
use Uxmp\Core\Orm\Model\Session;
use Uxmp\Core\Orm\Model\SessionInterface;
/**
* @extends EntityRepository<Session>
*
* @method null|SessionInterface findOneBy(mixed[] $criteria)
*/
final class SessionRepository extends EntityRepository implements SessionRepositoryInterface
{
public function prototype(): SessionInterface
return new Session();
}
public function save(SessionInterface $session): void
$this->getEntityManager()->persist($session);
$this->getEntityManager()->flush();
public function delete(SessionInterface $session): void
$this->getEntityManager()->remove($session);