Replies: 1 comment 3 replies
-
This is a wontfix, those SQL converters are only supported on actual database columns, while a property on nested object embedded entity is just a part of a JSON object. I will look into why it fails this way, but the bottom line is - you are trying something that's not supposed to be working (the SQL converter is not supposed to be fired at all for object embeddables). |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the bug
Method convertToDatabaseValueSQL() from custom type is not invoked properly when calling it within the nested embeddables. It gets error: DriverException: Trying to serialize raw SQL fragment.
Reproduction
What driver are you using?
@mikro-orm/mysql
MikroORM version
6.0.0-rc3
Node.js version
v20.3.1
Operating system
MacOS 14.2.1
Validations
Beta Was this translation helpful? Give feedback.
All reactions