Skip to content
This repository has been archived by the owner on Feb 26, 2018. It is now read-only.

nested form for relation #119

Open
Maxim-Chugaev opened this issue Apr 16, 2017 · 1 comment
Open

nested form for relation #119

Maxim-Chugaev opened this issue Apr 16, 2017 · 1 comment

Comments

@Maxim-Chugaev
Copy link

https://github.com/adamwathan/form/blob/master/src/AdamWathan/Form/Binding/BoundData.php#L67

 return $this->dataGet($target->{$key}, $keyParts, $default);

This is not worked for collection in model relations, such as many to many or many to one.
i think need this change to $target[$key]

@cirdog
Copy link

cirdog commented Jul 25, 2017

#113
Just try my solution.

The Author seems to be not attending to this "bug" of loading related models.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants