diff --git a/app/src/Repository/Proyecto.php b/app/src/Repository/Proyecto.php index 5f7d459..6780c94 100644 --- a/app/src/Repository/Proyecto.php +++ b/app/src/Repository/Proyecto.php @@ -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 {