*/ private array $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->parent = false; $this->blocks = [ ]; } protected function doDisplay(array $context, array $blocks = []): iterable { $macros = $this->macros; $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"]; $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Maker/doctrine/Repository.tpl.php")); $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Maker/doctrine/Repository.tpl.php")); // line 1 yield " namespace ; /** * @extends ServiceEntityRepository<> */ class extends ServiceEntityRepository { public function __construct(ManagerRegistry \$registry) { parent::__construct(\$registry, ::class); } /** * Used to upgrade (rehash) the user's password automatically over time. */ public function upgradePassword(getShortName()); ?>\$user, string \$newHashedPassword): void { if (!\$user instanceof ) { throw new UnsupportedUserException(sprintf('Instances of \"%s\" are not supported.', \$user::class)); } \$user->setPassword(\$newHashedPassword); \$this->getEntityManager()->persist(\$user); \$this->getEntityManager()->flush(); } // /** // * @return [] Returns an array of objects // */ // public function findByExampleField(\$value): array // { // return \$this->createQueryBuilder('') // ->andWhere('.exampleField = :val') // ->setParameter('val', \$value) // ->orderBy('.id', 'ASC') // ->setMaxResults(10) // ->getQuery() // ->getResult() // ; // } // public function findOneBySomeField(\$value): ? // { // return \$this->createQueryBuilder('') // ->andWhere('.exampleField = :val') // ->setParameter('val', \$value) // ->getQuery() // ->getOneOrNullResult() // ; // } } "; $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof); $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof); yield from []; } /** * @codeCoverageIgnore */ public function getTemplateName(): string { return "@Maker/doctrine/Repository.tpl.php"; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 48 => 1,); } public function getSourceContext(): Source { return new Source(" namespace ; /** * @extends ServiceEntityRepository<> */ class extends ServiceEntityRepository { public function __construct(ManagerRegistry \$registry) { parent::__construct(\$registry, ::class); } /** * Used to upgrade (rehash) the user's password automatically over time. */ public function upgradePassword(getShortName()); ?>\$user, string \$newHashedPassword): void { if (!\$user instanceof ) { throw new UnsupportedUserException(sprintf('Instances of \"%s\" are not supported.', \$user::class)); } \$user->setPassword(\$newHashedPassword); \$this->getEntityManager()->persist(\$user); \$this->getEntityManager()->flush(); } // /** // * @return [] Returns an array of objects // */ // public function findByExampleField(\$value): array // { // return \$this->createQueryBuilder('') // ->andWhere('.exampleField = :val') // ->setParameter('val', \$value) // ->orderBy('.id', 'ASC') // ->setMaxResults(10) // ->getQuery() // ->getResult() // ; // } // public function findOneBySomeField(\$value): ? // { // return \$this->createQueryBuilder('') // ->andWhere('.exampleField = :val') // ->setParameter('val', \$value) // ->getQuery() // ->getOneOrNullResult() // ; // } } ", "@Maker/doctrine/Repository.tpl.php", "/var/www/cds/app/vendor/symfony/maker-bundle/templates/doctrine/Repository.tpl.php"); } }