Escriturar
This commit is contained in:
@ -47,4 +47,13 @@ class Pie extends Ideal\Repository
|
||||
{
|
||||
return $this->update($model, ['fecha', 'valor', 'uf', 'cuotas', 'asociado', 'reajuste'], $new_data);
|
||||
}
|
||||
|
||||
public function fetchAsociados(int $pie_id): array
|
||||
{
|
||||
$query = $this->connection->getQueryBuilder()
|
||||
->select()
|
||||
->from($this->getTable())
|
||||
->where('asociado = ?');
|
||||
return $this->fetchMany($query, [$pie_id]);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user