Cleanup
This commit is contained in:
@ -48,6 +48,11 @@ class Pie extends Ideal\Repository
|
||||
return $this->update($model, ['fecha', 'valor', 'uf', 'cuotas', 'asociado', 'reajuste'], $new_data);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $pie_id
|
||||
* @return array
|
||||
* @throws Implement\Exception\EmptyResult
|
||||
*/
|
||||
public function fetchAsociados(int $pie_id): array
|
||||
{
|
||||
$query = $this->connection->getQueryBuilder()
|
||||
@ -56,6 +61,12 @@ class Pie extends Ideal\Repository
|
||||
->where('asociado = ?');
|
||||
return $this->fetchMany($query, [$pie_id]);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param float $value
|
||||
* @return array
|
||||
* @throws Implement\Exception\EmptyResult
|
||||
*/
|
||||
public function fetchByValue(float $value): array
|
||||
{
|
||||
$query = $this->connection->getQueryBuilder()
|
||||
|
Reference in New Issue
Block a user