Symfony2 entity field type alternatives to “property” or “__toString()”?

后端 未结 3 1647
后悔当初
后悔当初 2020-12-13 07:05

Using Symfony2 entity field type one should specify property option:

$builder->add(\'customers\', \'entity\', array(
    \'multiple\' =>          


        
3条回答
  •  隐瞒了意图╮
    2020-12-13 07:56

    Passing a closure does not work yet, but will be added to Symfony soon: https://github.com/symfony/symfony/issues/4067

提交回复
热议问题