+
Skip to content

Conversation

billy1624
Copy link
Member

@billy1624 billy1624 commented Jun 7, 2024

PR Info

Bug Fixes

  • Generate has_one relation for foreign key column with unique index / constraint

Install sea-orm-cli and try it on your local machine:

cargo install sea-orm-cli --force --git https://github.com/SeaQL/sea-orm --branch cli-gen-has-one-relation

@SZenglein
Copy link
Contributor

This does fix my issue I tried to fix in #2236

@billy1624 billy1624 force-pushed the cli-gen-has-one-relation branch from 164eaf1 to 64856a6 Compare June 19, 2024 12:22
@billy1624 billy1624 merged commit bca933a into master Jun 19, 2024
@billy1624 billy1624 deleted the cli-gen-has-one-relation branch June 19, 2024 12:40
Copy link

🎉 Released In 1.0.0-rc.6 🎉

Thank you everyone for the contribution!
This feature is now available in the latest release. Now is a good time to upgrade!
Your participation is what makes us unique; your adoption is what drives us forward.
You can support SeaQL 🌊 by starring our repos, sharing our libraries and becoming a sponsor ⭐.

Copy link

github-actions bot commented Aug 4, 2024

🎉 Released In 1.0.0 🎉

Thank you everyone for the contribution!
This feature is now available in the latest release. Now is a good time to upgrade!
Your participation is what makes us unique; your adoption is what drives us forward.
You can support SeaQL 🌊 by starring our repos, sharing our libraries and becoming a sponsor ⭐.

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.

has_one relation is not recognized with primary foreign key (class table inheritance)

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载