form icon indicating copy to clipboard operation
form copied to clipboard

nested form for relation

Open Maxim-Chugaev opened this issue 8 years ago • 1 comments

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]

Maxim-Chugaev avatar Apr 16 '17 00:04 Maxim-Chugaev

#113 Just try my solution.

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

cirdog avatar Jul 25 '17 02:07 cirdog