Pārlūkot izejas kodu

Modif AbstractRepositoryQuery

develop
Guillaume pirms 3 gadiem
vecāks
revīzija
81b12bd0dc
1 mainītis faili ar 3 papildinājumiem un 1 dzēšanām
  1. +3
    -1
      Repository/AbstractRepositoryQuery.php

+ 3
- 1
Repository/AbstractRepositoryQuery.php Parādīt failu

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

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);
}

/*

Notiek ielāde…
Atcelt
Saglabāt