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
I just found this issue because I thought one of my repositories returned plain objects, where all the others usually returned class instances on `save()`. Turns out that in all other places I indeed called `create()` before `save()`. It looks like `save` returns an entity instance when it was given an entity instance, and a plain object when it's given a plain object.
The text was updated successfully, but these errors were encountered:
Enrico724
changed the title
I just found this issue because I thought one of my repositories returned plain objects, where all the others usually returned class instances on save(). Turns out that in all other places I indeed called create() before save(). It looks like save returns an entity instance when it was given an entity instance, and a plain object when it's given a plain object.
Entity instance is not correctly initialized inside .save() method
Apr 23, 2024
Originally posted by @quezak in #4363 (comment)
The text was updated successfully, but these errors were encountered: