public function filterByOldUrl(string $oldUrl): self | public function filterByOldUrl(string $oldUrl): self | ||||
{ | { | ||||
// @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); | |||||
return $this->andWhere('.oldUrls LIKE :oldUrl')->setParameter('oldUrl', '%'.$oldUrl.'%'); | |||||
} | } | ||||
/* | /* |