Skip to content

Why is there no "as" for HasMany/BelongsToMany in v7? #17212

Discussion options

You must be logged in to vote

Because the name of the association is also the name of the class field that will be used to access the eagerly loaded association, when using decorators, the name of the class field being decorated is automatically used as the as option

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by ephys
Comment options

You must be logged in to vote
1 reply
@ephys
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants