| @@ 28-37 (lines=10) @@ | ||
| 25 | /** |
|
| 26 | * {@inheritdoc} |
|
| 27 | */ |
|
| 28 | public function getPublishedRevision(): QueryBuilder |
|
| 29 | { |
|
| 30 | $qb = $this->getQueryByCriteria(new Criteria(), [], 'r') |
|
| 31 | ->where('r.status = :status') |
|
| 32 | ->setParameter('status', RevisionInterface::STATE_PUBLISHED) |
|
| 33 | ->orderBy('r.publishedAt', 'desc') |
|
| 34 | ->setMaxResults(1); |
|
| 35 | ||
| 36 | return $qb; |
|
| 37 | } |
|
| 38 | ||
| 39 | /** |
|
| 40 | * {@inheritdoc} |
|
| @@ 42-50 (lines=9) @@ | ||
| 39 | /** |
|
| 40 | * {@inheritdoc} |
|
| 41 | */ |
|
| 42 | public function getWorkingRevision(): QueryBuilder |
|
| 43 | { |
|
| 44 | $qb = $this->getQueryByCriteria(new Criteria(), [], 'r') |
|
| 45 | ->where('r.status = :status') |
|
| 46 | ->setParameter('status', RevisionInterface::STATE_NEW) |
|
| 47 | ->setMaxResults(1); |
|
| 48 | ||
| 49 | return $qb; |
|
| 50 | } |
|
| 51 | ||
| 52 | /** |
|
| 53 | * {@inheritdoc} |
|