public function setForm($name, $formName, $type, array $validationGroups)
    {
        $this->forms[$name] = array('type' => $type, 'name' => $formName, 'validation_groups' => $validationGroups);

        return $this;
    }