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\AccessKey;
use Uxmp\Core\Orm\Model\AccessKeyInterface;
/**
* @extends EntityRepository<AccessKey>
*
* @method null|AccessKeyInterface findOneBy(mixed[] $criteria)
*/
final class AccessKeyRepository extends EntityRepository implements AccessKeyRepositoryInterface
{
public function prototype(): AccessKeyInterface
return new AccessKey();
}
public function save(AccessKeyInterface $accessKey): void
$this->getEntityManager()->persist($accessKey);
$this->getEntityManager()->flush();
public function delete(AccessKeyInterface $accessKey): void
$this->getEntityManager()->remove($accessKey);