symfony - Symfony2 translate form entity property -


i have symfony2 form edit users. users has roles , can select multiple roles 1 user.

in form display userroles entity:

$builder->add( 'rolesasobject', 'entity', array( 'label' => 'roles', 'class' => 'acmeuserbundle:userroles', 'multiple' => true, 'property' => 'name' ) );

this works correctly, name property number, id language key, because translate name of roles.

is possible call function somehow on property?


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -