Browse Source

Modif AbstractRepositoryQuery

develop
Guillaume 3 years ago
parent
commit
81b12bd0dc
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      Repository/AbstractRepositoryQuery.php

+ 3
- 1
Repository/AbstractRepositoryQuery.php View File



public function filterByOldUrl(string $oldUrl): self public function filterByOldUrl(string $oldUrl): self
{ {
return $this->andWhere(':oldUrl IN .oldUrls')->setParameter('oldUrl', $oldUrl);
// @TODO : ne fonctionne pas, utilisation de LIKE à la place ?
//return $this->andWhere(':oldUrl IN (.oldUrls)')->setParameter('oldUrl', $oldUrl);
return $this->andWhere(':oldUrl LIKE .oldUrls')->setParameter('oldUrl', $oldUrl);
} }


/* /*

Loading…
Cancel
Save