Skip to content

add prefix support to FromQueryResult nested attributeΒ #2981

@YouKnow-sys

Description

@YouKnow-sys

Motivation

Right now as far as I can see there's no way to add prefix to a nested model, not having this feautre stops us from using/nseting the same model multiple times inside same model.

Proposed Solutions

We should add support for setting prefix key inside the nested attribute, so user can do #[sea_orm(nested(prefix = "player_"))] or maybe if just #[sea_orm(nested(prefix))] we can prefix the nested model with the variable name that it's set to...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions