remove old repository
This commit is contained in:
parent
01f6134d87
commit
d4c0a2ed60
|
@ -1,50 +0,0 @@
|
||||||
<?php
|
|
||||||
|
|
||||||
namespace App\Repository\Site;
|
|
||||||
|
|
||||||
use App\Core\Site\Node;
|
|
||||||
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|
||||||
use Doctrine\Persistence\ManagerRegistry;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @method Node|null find($id, $lockMode = null, $lockVersion = null)
|
|
||||||
* @method Node|null findOneBy(array $criteria, array $orderBy = null)
|
|
||||||
* @method Node[] findAll()
|
|
||||||
* @method Node[] findBy(array $criteria, array $orderBy = null, $limit = null, $offset = null)
|
|
||||||
*/
|
|
||||||
class NodeRepository extends ServiceEntityRepository
|
|
||||||
{
|
|
||||||
public function __construct(ManagerRegistry $registry)
|
|
||||||
{
|
|
||||||
parent::__construct($registry, Node::class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// /**
|
|
||||||
// * @return Node[] Returns an array of Node objects
|
|
||||||
// */
|
|
||||||
/*
|
|
||||||
public function findByExampleField($value)
|
|
||||||
{
|
|
||||||
return $this->createQueryBuilder('n')
|
|
||||||
->andWhere('n.exampleField = :val')
|
|
||||||
->setParameter('val', $value)
|
|
||||||
->orderBy('n.id', 'ASC')
|
|
||||||
->setMaxResults(10)
|
|
||||||
->getQuery()
|
|
||||||
->getResult()
|
|
||||||
;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
public function findOneBySomeField($value): ?Node
|
|
||||||
{
|
|
||||||
return $this->createQueryBuilder('n')
|
|
||||||
->andWhere('n.exampleField = :val')
|
|
||||||
->setParameter('val', $value)
|
|
||||||
->getQuery()
|
|
||||||
->getOneOrNullResult()
|
|
||||||
;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
|
Loading…
Reference in a new issue