fixes #6585#6614
Conversation
… when using nested collections
|
It fixes the issue, but isn't it better to create a method that does one thing and only populates? The values can be provided as an argument to that method like this: $data = $this->extract();
$this->populate($data);That looks a bit cleaner to me instead of one call to |
|
Agree that would make more elegant solution. Made the changes |
There was a problem hiding this comment.
Should be private or protected
There was a problem hiding this comment.
That's overriding method from fieldset. So either we need to figure out a new name for this or keep it public :(
We could take that method away from the form all together but that would change the existing behavior a little (Namely that the form would populate every field instead of just the base during bind and validation without data)..Tests seem to pass then also, but I'd be surprised if there wouldn't be any side effects in some app.
There was a problem hiding this comment.
If it's an override then it's fine: I just don't want new API that is an implementation detail :-)
There was a problem hiding this comment.
If it's inherited, could you replace the docblock with {@inheritDoc}?
There was a problem hiding this comment.
Perhaps you can add a group annotation so it is clear why the test is needed? See #6711
|
Linking #6711 |
fixes #6585