Skip to content

Commit

Permalink
update to 2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jdewit committed Jun 4, 2012
1 parent af40f9c commit 8dae7cc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Templates/Knockout/Form/Type/FormType.php
Expand Up @@ -47,14 +47,15 @@ public function buildForm(FormBuilderInterface $builder, array $options)
{% elseif field.type == 'oneToMany' or field.type == 'manyToMany' %}
//TODO
{% endif %}
{% endfor %}

}

public function setDefaultOptions(OptionsResolverInterface $resolver)
public function getDefaultOptions()
{
$resolver->setDefaults(array(
return array(
'data_class' => '{{ bundleNamespace }}\Entity\{{ entity }}'
));
);
}

public function getName()
Expand Down

0 comments on commit 8dae7cc

Please sign in to comment.