Test Setup Failed
Branch main (b06171)
by Jenny
25:39 queued 21:46
created

TextsRepository::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
<?php
2
3
namespace App\Repository;
4
5
use App\Entity\Goals\Texts;
6
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
7
use Doctrine\Persistence\ManagerRegistry;
8
9
/**
10
 * @extends ServiceEntityRepository<Texts>
11
 */
12
class TextsRepository extends ServiceEntityRepository
13
{
14
    public function __construct(ManagerRegistry $registry)
15
    {
16
        parent::__construct($registry, Texts::class);
17
    }
18
19
    //    /**
20
    //     * @return Texts[] Returns an array of Texts objects
21
    //     */
22
    //    public function findByExampleField($value): array
23
    //    {
24
    //        return $this->createQueryBuilder('t')
25
    //            ->andWhere('t.exampleField = :val')
26
    //            ->setParameter('val', $value)
27
    //            ->orderBy('t.id', 'ASC')
28
    //            ->setMaxResults(10)
29
    //            ->getQuery()
30
    //            ->getResult()
31
    //        ;
32
    //    }
33
34
    //    public function findOneBySomeField($value): ?Texts
35
    //    {
36
    //        return $this->createQueryBuilder('t')
37
    //            ->andWhere('t.exampleField = :val')
38
    //            ->setParameter('val', $value)
39
    //            ->getQuery()
40
    //            ->getOneOrNullResult()
41
    //        ;
42
    //    }
43
}
44