Created
December 21, 2012 12:47
-
-
Save manuakasam/4352583 to your computer and use it in GitHub Desktop.
Usage for multi-property values on EntitySelect See https://gist.github.com/4352572
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$this->add(array( | |
'name' => 'someName', | |
'type' => 'MyNamespace\Form\Element\EntitySelect', | |
'attributes' => array( | |
'required' => true | |
), | |
'options' => array( | |
'label' => 'Select element Label', | |
'empty_option' => '--- Choose Entity ---', | |
'object_manager' => $this->getEntityManager(), | |
'target_class' => 'MyNamespace\Entity\TargetEntity', | |
'property' => array( | |
'propertyOne', | |
'propertyTwo' | |
) | |
) | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment