We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When there is mapping from a source array property to a target array property, the values in the source array get each nested in their own array.
class UserApiResource { public array $roles; // ["ROLE_USER"] } ... class UserEntity { public function setRoles(array $roles) { $this->roles = $roles; // [["ROLE_USER"]]; } }
This occurs because the generated mapping class does wrap each value in the array in their own array:
$values = []; foreach ($value->roles ?? [] as $key => $value_2) { $values[] = [$value_2]; } $result->setRoles($values);
This issue was not present in 9.2.1.
The text was updated successfully, but these errors were encountered:
fix(array): add test for issue #259
767be97
I cannot reproduce this issue on master see the corresponding PR that add a test corresponding to your description
Can you try on master to check if this is still present ?
Sorry, something went wrong.
Hi, can confirm the bug is no longer present in the master branch.
Closing this now. Thank you for the quick attention!
No branches or pull requests
When there is mapping from a source array property to a target array property, the values in the source array get each nested in their own array.
This occurs because the generated mapping class does wrap each value in the array in their own array:
This issue was not present in 9.2.1.
The text was updated successfully, but these errors were encountered: