symfony/symfony — Issue #3442: Choice validation callback.
Author: samsamm777
Created: 2012-02-24 12:18:21+00:00
State: open

When using a mutil-dimensional array in the callback it fails to pass the validation.

public static function getRoles() {
return array(
'ROLE_IT' => 'IT Department',
'ROLE_DESIGN' => 'Designers',
'ROLE_CUSTOMER_SERVICES' => 'Customer Services',
);
}

DropDead\HomeBundle\Entity\Ticket:
properties:
assignees:
- Choice: { callback: getRoles, multiple: true, min: 1 }