Editar propiedad en venta

This commit is contained in:
2023-12-01 15:00:25 -03:00
parent af9c6c51d4
commit 57579a52f1
6 changed files with 127 additions and 8 deletions

View File

@ -86,6 +86,13 @@ class PropiedadUnidad extends Ideal\Repository
->group('`unidad`.`id`');
return $this->fetchMany($query, [$propiedad_id]);
}
public function remove(Define\Model $model): void
{
$query = $this->connection->getQueryBuilder()
->delete()->from($this->getTable())
->where("id = ?");
$this->connection->execute($query, [$model->pu_id]);
}
protected function update(Define\Model $model, array $columns, array $data): Define\Model
{