-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
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
Bug AdminType field: Argument 3 passed to Sonata\AdminBundle\Manipulator\ObjectManipulator::callSetter() must be of the type string, null given #6218
Comments
In your database, many users are related to one image ?
|
Yes.
No. Its private repository
Yes. I was debugging the code and I think there is a bug in relationship maps for Many-to-one. Sonata tries to find a directive
|
One-to-one not work too |
I think I only worked and tested with bi-directionnal entities. Can you try this branch #6219 ?
The idea here was to the the user to the image in order to add check in the image admin. Previously $user->setImage / $user->addImage was called, but it'll end up with some bug with the validation. But I didn't think about unidirectional relation. There is no point trying to set anything for unidirectional relation since in the subject admin (image here) you can't access the parent. |
Dont know how pull your branch in my project... |
Sonata packages
Symfony packages
PHP version
Subject
sonata-project/admin-bundle:3.72
Error in edit entity page:
Argument 3 passed to Sonata\AdminBundle\Manipulator\ObjectManipulator::callSetter() must be of the type string, null given, called in /var/www/site/vendor/sonata-project/admin-bundle/src/Manipulator/ObjectManipulator.php on line 63
sonata-project/admin-bundle:3.71 and low - ok, no problem
Steps to reproduce
Entities:
The text was updated successfully, but these errors were encountered: