Created
July 24, 2011 10:03
-
-
Save dead1ock/1102473 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="{{ path('itemtemplate_update', { 'id': entity.id }) }}" method="post" {{ form_enctype(edit_form) }}> | |
{{ form_errors(edit_form) }} | |
{{ form_row(edit_form.name) }} | |
{{ form_row(edit_form.vendor) }} | |
{{ form_row(edit_form.sku) }} | |
<br /> | |
{% for trait in edit_form.trait %} | |
{{ form_row(trait) }} | |
{% endfor %} | |
{{ form_rest(edit_form) }} | |
<p> | |
<button type="submit">Edit</button> | |
</p> | |
</form> | |
//================ | |
/** | |
* @var ArrayCollection $traits | |
* | |
* @ORM\OneToMany(targetEntity="Trait", mappedBy="template") | |
*/ | |
private $traits; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment