| @@ 27-37 (lines=11) @@ | ||
| 24 | /** |
|
| 25 | * {@inheritdoc} |
|
| 26 | */ |
|
| 27 | public function findOneBySubdomain($subdomain) |
|
| 28 | { |
|
| 29 | return $this |
|
| 30 | ->createQueryBuilder('t') |
|
| 31 | ->select('t', 'o') |
|
| 32 | ->leftJoin('t.organization', 'o') |
|
| 33 | ->where('t.subdomain = :subdomain') |
|
| 34 | ->setParameter('subdomain', $subdomain) |
|
| 35 | ->getQuery() |
|
| 36 | ->getOneOrNullResult(); |
|
| 37 | } |
|
| 38 | ||
| 39 | /** |
|
| 40 | * {@inheritdoc} |
|
| @@ 42-52 (lines=11) @@ | ||
| 39 | /** |
|
| 40 | * {@inheritdoc} |
|
| 41 | */ |
|
| 42 | public function findOneByCode($code) |
|
| 43 | { |
|
| 44 | return $this |
|
| 45 | ->createQueryBuilder('t') |
|
| 46 | ->select('t', 'o') |
|
| 47 | ->leftJoin('t.organization', 'o') |
|
| 48 | ->where('t.code = :code') |
|
| 49 | ->setParameter('code', $code) |
|
| 50 | ->getQuery() |
|
| 51 | ->getOneOrNullResult(); |
|
| 52 | } |
|
| 53 | ||
| 54 | /** |
|
| 55 | * {@inheritdoc} |
|