Skip to content

Instantly share code, notes, and snippets.

@manuakasam
Created December 21, 2012 12:47
Show Gist options
  • Save manuakasam/4352583 to your computer and use it in GitHub Desktop.
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->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