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
Currently, entity column attribute declaration can look like this:
new Cycle\Column(type: 'tinyInteger', property: 'event_type', default: EventType::CREATED->value, typecast: EventType::class),
I.e we can only use scalar values like EventType::CREATED->value as default.
EventType::CREATED->value
Proposed improvement suggestion is to allow using enum cases without converting to underlying scalar value like so:
new Cycle\Column(type: 'tinyInteger', property: 'event_type', default: EventType::CREATED, typecast: EventType::class),
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have an idea!
Currently, entity column attribute declaration can look like this:
I.e we can only use scalar values like
EventType::CREATED->value
as default.Proposed improvement suggestion is to allow using enum cases without converting to underlying scalar value like so:
The text was updated successfully, but these errors were encountered: