Actualizacion de Repos
This commit is contained in:
@ -11,6 +11,11 @@ class Promotion extends Common\Ideal\Repository
|
||||
parent::__construct($connection);
|
||||
}
|
||||
|
||||
public function getTable(): string
|
||||
{
|
||||
return 'promotions';
|
||||
}
|
||||
|
||||
public function create(?array $data = null): Model\Venta\Promotion
|
||||
{
|
||||
$map = (new Implement\Repository\MapperParser(['amount', 'type']))
|
||||
@ -54,4 +59,4 @@ class Promotion extends Common\Ideal\Repository
|
||||
->where('price_id = :price_id AND state = :state');
|
||||
return $this->fetchMany($query, ['price_id' => $price_id, 'state' => Model\Venta\Promotion\State::ACTIVE]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user