public function editField(FieldFacet $fieldFacet, $name, $isRequired, $type)
    {
        $fieldFacet->setLabel($name);
        $fieldFacet->setType($type);
        $fieldFacet->setRequired($isRequired);
        $this->om->persist($fieldFacet);
        $this->om->flush();

        return $fieldFacet;
    }