Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * @var DoctrineCommonCollectionsCollection
- *
- * @ORMManyToMany(targetEntity="BackendCoreBundleEntityBackendUser")
- * @ORMJoinTable(name="supplier_manager",
- * joinColumns={
- * @ORMJoinColumn(name="supplier_id", referencedColumnName="supplier_id")
- * },
- * inverseJoinColumns={
- * @ORMJoinColumn(name="user_id", referencedColumnName="user_id")
- * }
- * )
- */
- private $managers;
- $builder
- ->add('name', 'text')
- ->add('contact', 'text')
- ->add('phone', 'text')
- ->add('email', 'email')
- ->add('webSite', 'text', array(
- 'required' => false
- ))
- ->add('description', 'textarea', array(
- 'required' => false
- ))
- ->add('managers', 'entity', array(
- 'class' => 'BackendCoreBundle:BackendUser',
- 'choices' => $this->options['granted_users_obj'], //object type is array
- 'multiple' => true,
- 'choice_label' => 'printname',
- 'required' => false
- ))
- ->add('btnSave', 'submit', array('label' => 'Сохранить и продолжить'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement