Skip to content

Commit

Permalink
more php 5.3
Browse files Browse the repository at this point in the history
  • Loading branch information
phiamo committed Apr 28, 2015
1 parent 689e2b7 commit 4fc4457
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Form/Type/ExampleFormsType.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ public function getButtonValue()
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$resolver->setDefaults(
[
array(
'data_class' => 'Mopa\Bundle\BootstrapSandboxBundle\Form\Model\ExampleFormsData'
]
)
);
}
}
8 changes: 4 additions & 4 deletions Form/Type/ExampleNestedCollectionChildType.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ public function buildForm(FormBuilderInterface $builder, array $options)
->add(
'myCollectionChild',
'collection',
[
array(
'type' => 'text',
'allow_add' => 'true',
'label' => 'smth',
'options' => [
'options' => array(
'label' => 'smth else'
]
]
)
)
);
}

Expand Down
8 changes: 4 additions & 4 deletions Form/Type/ExampleNestedCollectionParentType.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ public function buildForm(FormBuilderInterface $builder, array $options)
->add(
'myCollection',
'collection',
[
array(
'type' => new ExampleNestedCollectionChildType(),
'allow_add' => true,
'label' => 'parent collection',
'options' => [
'options' => array(
'label' => 'child collection'
]
]
)
)

);
}
Expand Down

0 comments on commit 4fc4457

Please sign in to comment.