Skip to content

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

Closed

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.

Activity

  1. stale commented on May 21, 2018

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment 🙂

  2. sushantdhiman commented on May 24, 2018

    @sushantdhiman
    Contributor

    There can be multiple aliases between participating models, so it would be a long list superCoolAuthor, superCoolAuthor2, superCoolAuthor3, ....

    Not sure we want to put full list here

  3. stale commented on Aug 22, 2018

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If this is still an issue, just leave a comment 🙂

  4. jaronwright commented on Oct 1, 2018

    @jaronwright

    We are experiencing the same issue has anyone found a solution/can we make this un-stale?

  5. sushantdhiman commented on Oct 18, 2018

    @sushantdhiman
    Contributor

    Moved to #10040

  6. sushantdhiman commented on Oct 18, 2018

    @sushantdhiman
    Contributor

    Fixed by #10041

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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