Pimcore\Model\Object\Classificationstore\KeyGroupRelation\Dao::getById PHP Method

getById() public method

public getById ( $keyId = null, $groupId = null )
    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);
    }