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(); }
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'))); }