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

model_extra_derives to be also added to coresponding enums #1392

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

Conversation

gocmarek
Copy link

As first thanks a lot for the job you are doing to deliver us this great piece of software!

As i see you have added extra option for sea-orm-cli "model_extra_derives" which is realy helping a lot and saving time - we don't need to add extra implementation of our code to have all needed derives.

...but there is a little problem because this option is not adding those derives to coresponding enums which is normally needed to be able to do some deeper mapping etc..

Please marge this PR to add this little gap, I think other people also need it.

Copy link
Member

@billy1624 billy1624 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @gocmarek, thanks for reporting this problem and file a PR for it. I think we need extra documentation for this breaking changes. We should edit the help message of sea-orm-cli generate entity command and mention the --model-extra-derives string will also be applied to the generated active enums.

@robertazzopardi
Copy link

Any update on this @gocmarek, would like to see this landed too!

@TmLev TmLev mentioned this pull request Oct 24, 2023
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Triage
Development

Successfully merging this pull request may close these issues.

3 participants