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())
->from("{$this->getTable()} a")
->joined($this->joinTerreno())
->where("a.descripcion = ?");
return $this->fetchOne($query, [$name]);
->where("a.descripcion LIKE ?");
return $this->fetchOne($query, ["%{$name}%"]);
}
public function fetchAllActive(): array
{