Skip to content
New issue

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

Add Support for Predefined Enum Collections in DataObject Initialization #776

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yob-yob
Copy link

@yob-yob yob-yob commented May 13, 2024

Hey there,

I encountered an issue while trying to create a DataObject that already incorporates an enum. Specifically, I found myself in situations where I needed to initialize my DataObject with a predefined enum collection.

For instance, let's consider an enum collection named SourceOfFunds:

[
  SourceOfFunds::Employment,
  1, // SourceOfFunds::Business,
  2, // SourceOfFunds::FamilySupport
]

To address this need, I've implemented changes in this pull request to support such scenarios. This enhancement will facilitate smoother integration of predefined enum collections into DataObject.

Looking forward to your feedback!

P.S. If I might be wrong on implementing this feature, could you please be able to provide me some information? Thank you.

@yob-yob yob-yob changed the title it can create data when enum is already casted Add Support for Predefined Enum Collections in DataObject Initialization May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant