private function updateClassContent($type, $uid, $data)
    {
        $this->granted('EDIT', $content = $this->getClassContentByTypeAndUid($type, $uid, true, true));
        $this->getClassContentManager()->update($content, $data);

        return $content;
    }