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
I discovered an issue when playing around with discriminated entities where casts no longer work, specifically the JsonCast@quick.
If I assemble the entity like this, casts work:
component extends="quick.models.BaseEntity" accessors="true" table="MaintenanceTask" { property name="data" casts="JsonCast@quick";
Output: "data":{"rowsDeleted":0,"targetDate":"June, 25 2023 13:15:59"}
"data":{"rowsDeleted":0,"targetDate":"June, 25 2023 13:15:59"}
If I assemble the root entity like this, casts don't work:
component extends="quick.models.BaseEntity" accessors="true" table="MaintenanceTask" discriminatorColumn="name" singleTableInheritance="true" { property name="data" casts="JsonCast@quick";
Output: "data":"{\"rowsDeleted\":0,\"targetDate\":\"June, 25 2023 13:17:27\"}"
"data":"{\"rowsDeleted\":0,\"targetDate\":\"June, 25 2023 13:17:27\"}"
Note: I tested this issue all the way back to Quick 5 and can replicate it.
The text was updated successfully, but these errors were encountered:
This issue has been mentioned on Ortus Solutions Community. There might be relevant details there:
https://community.ortussolutions.com/t/using-discriminated-entities-when-the-base-class-has-no-knowledge-of-child-classes/9728/6
Sorry, something went wrong.
https://community.ortussolutions.com/t/using-discriminated-entities-when-the-base-class-has-no-knowledge-of-child-classes/9728/8
No branches or pull requests
I discovered an issue when playing around with discriminated entities where casts no longer work, specifically the JsonCast@quick.
If I assemble the entity like this, casts work:
Output:
"data":{"rowsDeleted":0,"targetDate":"June, 25 2023 13:15:59"}
If I assemble the root entity like this, casts don't work:
Output:
"data":"{\"rowsDeleted\":0,\"targetDate\":\"June, 25 2023 13:17:27\"}"
Note: I tested this issue all the way back to Quick 5 and can replicate it.
The text was updated successfully, but these errors were encountered: