Línea 119... |
Línea 119... |
119 |
$select->columns(['uuid','name', 'description', 'text', 'language']);
|
119 |
$select->columns(['uuid','name', 'description', 'text', 'language']);
|
120 |
$select->from(['f' => CompanySelfEvaluationFormMapper::_TABLE]);
|
120 |
$select->from(['f' => CompanySelfEvaluationFormMapper::_TABLE]);
|
121 |
$select->join(['fu' => CompanySelfEvaluationFormUserMapper::_TABLE], 'f.id = fu.form_id', []);
|
121 |
$select->join(['fu' => CompanySelfEvaluationFormUserMapper::_TABLE], 'f.id = fu.form_id', []);
|
122 |
$select->join(['t' => CompanySelfEvaluationTestMapper::_TABLE], 'fu.form_id = t.form_id AND fu.user_id = t.user_id', ['status'], Select::JOIN_LEFT_OUTER );
|
122 |
$select->join(['t' => CompanySelfEvaluationTestMapper::_TABLE], 'fu.form_id = t.form_id AND fu.user_id = t.user_id', ['status'], Select::JOIN_LEFT_OUTER );
|
123 |
$select->where->equalTo('f.status', CompanySelfEvaluationForm::STATUS_ACTIVE);
|
123 |
$select->where->equalTo('f.status', CompanySelfEvaluationForm::STATUS_ACTIVE);
|
- |
|
124 |
$select->where->equalTo('fu.user_id', $currentUser->id);
|
124 |
|
125 |
|
Línea 125... |
Línea 126... |
125 |
|
126 |
|
126 |
if($search) {
|
127 |
if($search) {
|
127 |
$select->where->NEST->like('name', '%' . $search . '%');
|
128 |
$select->where->NEST->like('name', '%' . $search . '%');
|
128 |
}
|
129 |
}
|