Abstract data object as collection within data objects not only in Model #964
ManukMinasyan
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @rubenvanassche @onursimsek,
I'm encountering an error when trying to implement polymorphic expressions in
FilterGroupContentData
.When trying to use
FieldExpression
orRelationshipExpression
within theexpressions
data collection, I'm getting the following error:Here's my current implementation:
I attempted to use it inside a data object but haven't been successful. Could you please advise on how to properly integrate a solution that supports polymorphic expressions? I need to handle multiple
FilterGroupContentData
instances, each containing various expressions of different types (FieldExpression
orRelationshipExpression
).Do you have any recommendations for working with abstract classes for this specific use case?
I've created the Cast class that do this thing, is this possible to do same thing by package? https://gist.github.com/ManukMinasyan/d2b367028baab8f5d2c5c6ea80f4c8e8
Thanks for your help!
Beta Was this translation helpful? Give feedback.
All reactions