0
显示了哪些项目我已经使用这个类类型的一种形式:过滤收集在现场
class DespesasContainerType extends AbstractType
{
public function buildForm(FormBuilder $builder, array $options)
{
$builder
->add('despesas', 'collection', array(
'type' => new DespesasFamiliasType(),
'by_reference' => false,
))
;
}
// ...
}
这样,它显示了对象的属性despesas
的所有项目。
有没有办法来过滤哪些项目使用?类似entity
字段类型的query_builder
选项。