+
Skip to content

Impl IntoActiveModel from DerivePartialModel #2517

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

Merged
merged 1 commit into from
Mar 1, 2025
Merged

Conversation

tyt2y3
Copy link
Member

@tyt2y3 tyt2y3 commented Mar 1, 2025

#[derive(DerivePartialModel)]
#[sea_orm(entity = "cake::Entity", from_query_result, into_active_model)]
struct Cake {
    id: i32,
    name: String,
    #[sea_orm(nested)]
    bakery: Option<Bakery>,
    #[sea_orm(skip)]
    ignore: Ignore,
}

@tyt2y3 tyt2y3 force-pushed the into-active-model branch from f4fcaac to 4d76b25 Compare March 1, 2025 14:32
@tyt2y3 tyt2y3 merged commit fc6bc5a into master Mar 1, 2025
36 checks passed
@tyt2y3 tyt2y3 deleted the into-active-model branch March 1, 2025 14:50
Copy link

github-actions bot commented Mar 3, 2025

🎉 Released In 1.1.7 🎉

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 ⭐.

hjarraya pushed a commit to sambaclab/sea-orm that referenced this pull request Apr 29, 2025
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.

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