Browse Source

Correctif filtre old urls

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

+ 1
- 3
Repository/AbstractRepositoryQuery.php View File

@@ -153,9 +153,7 @@ abstract class AbstractRepositoryQuery implements RepositoryQueryInterface

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.'%');
}

/*

Loading…
Cancel
Save