FIX: Buscar por nombre con wildcards
This commit is contained in:
@ -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
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user