| Línea 94... |
Línea 94... |
| 94 |
|
94 |
|
| 95 |
$select = $queryMapper->getSql()->select();
|
95 |
$select = $queryMapper->getSql()->select();
|
| 96 |
$select->columns(['uuid', 'content','status','user_id','company_id']);
|
96 |
$select->columns(['uuid', 'content','status','user_id','company_id']);
|
| 97 |
$select->from(['test' => CompanySelfEvaluationTestMapper::_TABLE]);
|
97 |
$select->from(['test' => CompanySelfEvaluationTestMapper::_TABLE]);
|
| 98 |
$select->join(['form' => CompanySelfEvaluationFormMapper::_TABLE], 'test.form_id = form.id', []);
|
98 |
$select->join(['form' => CompanySelfEvaluationFormMapper::_TABLE], 'test.form_id = form.id', []);
|
| Línea 99... |
Línea 99... |
| 99 |
$select->where->equalTo('f.status', CompanySelfEvaluationForm::STATUS_ACTIVE);
|
99 |
$select->where->equalTo('form.status', CompanySelfEvaluationForm::STATUS_ACTIVE);
|
| 100 |
|
100 |
|
| 101 |
if ($search) {
|
101 |
if ($search) {
|
| 102 |
$select->where->NEST->like('name', '%' . $search . '%');
|
102 |
$select->where->NEST->like('name', '%' . $search . '%');
|