public function __construct($formNameStr, $valueName, DoctrineHydrator $doctrineHydratorObj, FieldsetInterface $fieldsetObj) { parent::__construct($formNameStr); $this->setFormNameStr($formNameStr); $this->setHydrator($doctrineHydratorObj); $fieldsetObj->setUseAsBaseFieldset(true); $this->add($fieldsetObj); $this->add(array('name' => 'submit', 'attributes' => array('type' => 'submit', 'value' => $valueName))); }