Skip to content

Naming conflicts in macros #2882

@Huliiiiii

Description

@Huliiiiii

I define my Model struct by this code

#[sea_orm::model]
#[derive(Clone, Debug, PartialEq, DeriveEntityModel)]
#[sea_orm(table_name = "user")]
pub struct Model {
    #[sea_orm(primary_key)]
    pub id: i64,
    pub username: String,
    pub password: String,
    pub user_type: UserType,
    #[sea_orm(has_many)]
    pub models: HasMany<super::model::Entity>,  //identifier `models` is bound more than once in the same patternused in a pattern more than once
    #[sea_orm(has_many)]
    pub providers: HasMany<super::provider::Entity>,
}

@Moeweb647252 Which macros did you use?

Originally posted by @Moeweb647252 in #2153

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions