Fixes #2713: using relations defined in behavior may throw exception in lazy loading.
Fixes #2713: using relations defined in behavior may throw exception in lazy loading.

yiisoft/yii2-framework,yiisoft/yii2-framework