Línea 116... |
Línea 116... |
116 |
$queryMapper = QueryMapper::getInstance($this->adapter);
|
116 |
$queryMapper = QueryMapper::getInstance($this->adapter);
|
Línea 117... |
Línea 117... |
117 |
|
117 |
|
118 |
$select = $queryMapper->getSql()->select();
|
118 |
$select = $queryMapper->getSql()->select();
|
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 );
|
Línea 123... |
Línea 123... |
123 |
$select->where->equalTo('f.status', CompanySelfEvaluationForm::STATUS_ACTIVE);
|
123 |
$select->where->equalTo('f.status', CompanySelfEvaluationForm::STATUS_ACTIVE);
|