We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The SelectRelationActiveQuery plugin loads the data trough a fix defined where ID= condition, which is wrong and won't work with other primary keys.
where ID=
Thefore a new attribute relation should be provided. This will also allow the eager loading of relation data in api calls:
relation
public function prepareListQuery() { return parent::prepareListQuery()->with(['target']); }
otherwise this won't have any effect.
The text was updated successfully, but these errors were encountered:
8f4b48e
add relation property for SelectRelationActiveQuery closes luyadev#331
5f2ca66
nadar
No branches or pull requests
The SelectRelationActiveQuery plugin loads the data trough a fix defined
where ID=
condition, which is wrong and won't work with other primary keys.Thefore a new attribute
relation
should be provided. This will also allow the eager loading of relation data in api calls:otherwise this won't have any effect.
The text was updated successfully, but these errors were encountered: