Actualizacion de Repos
This commit is contained in:
@ -12,6 +12,11 @@ class State extends Common\Ideal\Repository
|
||||
parent::__construct($connection);
|
||||
}
|
||||
|
||||
public function getTable(): string
|
||||
{
|
||||
return 'brokers_contract_states';
|
||||
}
|
||||
|
||||
public function create(?array $data = null): Model\Proyecto\Broker\Contract\State
|
||||
{
|
||||
$map = (new Common\Implement\Repository\MapperParser(['type']))
|
||||
@ -49,4 +54,4 @@ class State extends Common\Ideal\Repository
|
||||
->where('contract_id = :contract_id AND type = :type');
|
||||
return $this->fetchOne($query, ['contract_id' => $contract_id, 'type' => Model\Proyecto\Broker\Contract\State\Type::ACTIVE]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user