Skip to content

[Error] You've included an alias {...} but it does not match the alias defined in your association #9079

@tim-soft

Description

@tim-soft

Let's say I enter the wrong alias on a findAll query, I get this error

"user is associated to comment using an alias. You've included an alias (author), but it does not match the alias defined in your association."

This message could be a lot more helpful if it mentioned the actual alias given in the association

What would be better?

"user is associated to comment using an alias. You've included an alias (author), but it does not match the alias defined in your association (superCoolAuthor)."

Is this possible? It's kind of nitpicky but also equally annoying to need to dig back into the models to see what the actual alias is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions