Add multiple binding support to FormHelper #455

merged 2 commits into from May 12, 2012


None yet
2 participants

mariano commented May 12, 2012

Currently FormHelper can only be tied to one binding. However there are many scenarios on which more than one binding is needed, such as a form that deals with two or more entities.

This pull request adds support for multiple bindings to forms without affecting BC. It follows a very simple approach (greatly improved by @nateabele), and allows one to easily create multi-entity forms:

echo $this->form->create(compact('user', 'profile'));
echo $this->form->field('');
echo $this->form->field('');
echo $this->form->field('profile.about');

nateabele added a commit that referenced this pull request May 12, 2012

Merge pull request #455 from mariano/form-multiple-bindings
Add multiple binding support to FormHelper

@nateabele nateabele merged commit 13d9528 into UnionOfRAD:dev May 12, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment