| Línea 112... |
Línea 112... |
| 112 |
|
112 |
|
| 113 |
$select = $queryMapper->getSql()->select();
|
113 |
$select = $queryMapper->getSql()->select();
|
| 114 |
$select->columns(['uuid', 'name', 'description', 'text', 'language']);
|
114 |
$select->columns(['uuid', 'name', 'description', 'text', 'language']);
|
| 115 |
$select->from(['f' => CompanySelfEvaluationFormMapper::_TABLE]);
|
115 |
$select->from(['f' => CompanySelfEvaluationFormMapper::_TABLE]);
|
| 116 |
$select->join(['fu' => CompanySelfEvaluationFormUserMapper::_TABLE], 'f.id = fu.form_id', []);
|
116 |
$select->join(['fu' => CompanySelfEvaluationFormUserMapper::_TABLE], 'f.id = fu.form_id', []);
|
| 117 |
$select->join(['t' => CompanySelfEvaluationTestMapper::_TABLE], 'fu.form_id = t.form_id AND fu.user_id = t.user_id', ['status'], Select::JOIN_LEFT_OUTER);
|
117 |
$select->join(['t' => CompanySelfEvaluationTestMapper::_TABLE], 'fu.form_id = t.form_id AND fu.user_id = t.user_id', ['status','uuid'], Select::JOIN_LEFT_OUTER);
|
| 118 |
$select->where->equalTo('f.status', CompanySelfEvaluationForm::STATUS_ACTIVE);
|
118 |
$select->where->equalTo('f.status', CompanySelfEvaluationForm::STATUS_ACTIVE);
|
| Línea 119... |
Línea 119... |
| 119 |
$select->where->equalTo('fu.user_id', $currentUser->id);
|
119 |
$select->where->equalTo('fu.user_id', $currentUser->id);
|
| Línea 184... |
Línea 184... |
| 184 |
|
184 |
|
| 185 |
|
185 |
|
| 186 |
|
186 |
|
| 187 |
$response = [
|
187 |
$response = [
|
| Línea 188... |
Línea 188... |
| 188 |
'success' => true,
|
188 |
'success' => true,
|
| 189 |
'data' => $items
|
189 |
'data' => $records
|