Пример #1
0
 public function __construct($formNameStr, TranslatorObj $translator)
 {
     parent::__construct($formNameStr, $translator);
     $this->createNameField();
     $this->createDescriptionField();
     $this->createIsActiveField();
 }
Пример #2
0
 public function __construct(DoctrineHydratorObj $doctrineHydratorObj, $mapperEntityObj, $fieldsetNameStr, TranslatorObj $translator)
 {
     parent::__construct($fieldsetNameStr, $translator);
     $this->setHydrator($doctrineHydratorObj);
     $this->setObject($mapperEntityObj);
     $this->createIdField();
     $this->createNameField();
     $this->createDescriptionField();
     $this->createIsActiveField();
 }