Exclude iterable attrvalue from displaying by b-b3rn4rd · Pull Request #344 · braincrafted/bootstrap-bundle
I believe the commit is self explanatory, sometimes I need to set child attributes for choice field. For instance:
$builder->add('is_member_of_fund', 'choice', array( 'expanded' => true, 'label' => 'Is trustee a member of the fund?', 'choices' => array( '1' => 'Yes', '0' => 'No' ), 'attr' => array( 'child_attr' => array( 'data-bind' => "checked: {$options['knockoutJsNS']}.isMemberOfFund") ), ));