-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
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
Unnecessary mysql queries #15
Comments
Could you add related code? |
This is in the parent class' behaviour method: 'manytomany' => [ I think the strange query happens when there are no linked child models available. |
I have the same issue as well. the related model's behaviors() is the following: |
Any comments? |
same issue here |
I see lot's of these unnecessary queries in my db log:
SELECT * FROM
hazard
WHERE 0=1/home/andreas/labdb/vendor/arogachev/yii2-many-to-many/components/ManyToManyRelation.php:232
/home/andreas/labdb/vendor/arogachev/yii2-many-to-many/components/ManyToManyRelation.php:174
/home/andreas/labdb/vendor/arogachev/yii2-many-to-many/components/ManyToManyRelation.php:169
The text was updated successfully, but these errors were encountered: