You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a property in the constructor is not filled and the form type has no validation error related, empty data auto-fill may fail silenciously.
SwagIndustries\Melodiia\Doctrine\DoctrineDataStore::save(): Argument #1 ($model) must be of type object, null given, called in /home/manager-app/vendor/swag-industries/melodiia/src/Crud/Controller/Create.php on line 68
Explanation
When a property in the constructor is not filled and the form type has no validation error related, empty data auto-fill may fail silenciously.
Example
Let's take as an example this registration form:
With the following User model:
If you provide the following data to the API:
Then you will end up with a super weird (but normal because a parameter is missing) 500 error, instead of a validation error.
Solution
I have no out of the fryer option for now. Adding a log would be nice for sure.
The text was updated successfully, but these errors were encountered: