Example #1
0
 public function __construct(DoctrineHydratorObj $doctrineHydratorObj, $controllerEntityObj, $fieldsetNameStr, TranslatorObj $translator)
 {
     parent::__construct($fieldsetNameStr, $translator);
     $this->setHydrator($doctrineHydratorObj);
     $this->setObject($controllerEntityObj);
     $this->createIdField();
     $this->createNameField();
     $this->createDescriptionField();
     $this->createIsActiveField();
 }
Example #2
0
 public function __construct(DoctrineHydratorObj $doctrineHydratorObj, $controllerEntityObj, $fieldsetNameStr, TranslatorObj $translator, ObjectManager $objectManager, $inverseEntityFqcn)
 {
     parent::__construct($fieldsetNameStr, $translator);
     $this->setHydrator($doctrineHydratorObj);
     $this->setObject($controllerEntityObj);
     $this->createIdField();
     $this->createNameField();
     $this->createDescriptionField();
     $this->createIsActiveField();
     $this->add(array('type' => 'DoctrineModule\\Form\\Element\\ObjectSelect', 'name' => 'module', 'options' => array('object_manager' => $objectManager, 'target_class' => $inverseEntityFqcn, 'property' => 'name')));
 }