getApplicationUserId(); return parent::initFromForm($data); } public function getDocumentsByUserId($userId) { $select = $this->_db->select(); $select->from($this->_getPair('ApplicationDocument'), array('id', 'file')); $select->where('`applicationUserId` = ?', $userId, Qs_Db::INT_TYPE); return $this->_db->fetchPairs($select); } protected function _addDependenciesFromDb(&$data) { $documentType = $this->getDocumentTypeById($data['documentTypeId']); $data['title'] = $documentType['title']; $data['description'] = $documentType['description']; return parent::_addDependenciesFromDb($data); } }