FIX: Buscar por nombre con wildcards

This commit is contained in:
2023-12-20 12:02:52 -03:00
parent abe82e4689
commit 6f772a56b8

View File

@ -91,8 +91,8 @@ class Proyecto extends Ideal\Repository
->select($this->columns()) ->select($this->columns())
->from("{$this->getTable()} a") ->from("{$this->getTable()} a")
->joined($this->joinTerreno()) ->joined($this->joinTerreno())
->where("a.descripcion = ?"); ->where("a.descripcion LIKE ?");
return $this->fetchOne($query, [$name]); return $this->fetchOne($query, ["%{$name}%"]);
} }
public function fetchAllActive(): array public function fetchAllActive(): array
{ {