| @@ 25-32 (lines=8) @@ | ||
| 22 | /** |
|
| 23 | * {@inheritdoc} |
|
| 24 | */ |
|
| 25 | public function findOneBySubdomainAndDomain($subdomain, $domain) |
|
| 26 | { |
|
| 27 | $qb = $this->createQueryBuilder('t'); |
|
| 28 | $qb->where()->eq()->field('t.subdomain')->literal($subdomain); |
|
| 29 | $qb->andWhere()->eq()->field('t.domainName')->literal($domain); |
|
| 30 | ||
| 31 | return $qb->getQuery()->getOneOrNullResult(); |
|
| 32 | } |
|
| 33 | ||
| 34 | /** |
|
| 35 | * {@inheritdoc} |
|
| @@ 37-44 (lines=8) @@ | ||
| 34 | /** |
|
| 35 | * {@inheritdoc} |
|
| 36 | */ |
|
| 37 | public function findOneByDomain($domain) |
|
| 38 | { |
|
| 39 | $qb = $this->createQueryBuilder('t'); |
|
| 40 | $qb->where()->eq()->field('t.domainName')->literal($domain); |
|
| 41 | $qb->andWhere()->eq()->field('t.subdomain')->literal(null); |
|
| 42 | ||
| 43 | return $qb->getQuery()->getOneOrNullResult(); |
|
| 44 | } |
|
| 45 | ||
| 46 | /** |
|
| 47 | * {@inheritdoc} |
|