Actualizacion de Repos
This commit is contained in:
@ -13,6 +13,11 @@ class Contract extends Common\Ideal\Repository
|
||||
parent::__construct($connection);
|
||||
}
|
||||
|
||||
public function getTable(): string
|
||||
{
|
||||
return 'broker_contracts';
|
||||
}
|
||||
|
||||
public function create(?array $data = null): Model\Proyecto\Broker\Contract
|
||||
{
|
||||
$map = (new Common\Implement\Repository\MapperParser(['commission']))
|
||||
@ -90,4 +95,4 @@ class Contract extends Common\Ideal\Repository
|
||||
{
|
||||
return 'INNER JOIN (SELECT bcs1.* FROM broker_contract_states bcs1 INNER JOIN (SELECT MAX(id) AS id, contract_id FROM broker_contract_states GROUP BY contract_id) bcs0 ON bcs0.id = bcs1.id) bcs ON bcs.contract = a.id';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user