public function getById($keyId = null, $groupId = null)
{
if ($keyId != null) {
$this->model->setKeyId($keyId);
}
if ($groupId != null) {
$this->model->setGroupId($groupId);
}
$data = $this->db->fetchRow("SELECT * FROM " . self::TABLE_NAME_RELATIONS . "," . Model\Object\Classificationstore\KeyConfig\Dao::TABLE_NAME_KEYS . " WHERE keyId = ? AND groupId = `?", $this->model->getKeyId(), $this->model->groupId);
$this->assignVariablesToModel($data);
}