yiisoft/yii2 — pull request #4970 by stepanselyuk (2014-09-09 19:02:53+00:00)
Title: Handling $query->joinWith called inside of other $query->joinWith within...

... Closure (called inside Closure). Ex.:

```php
$query->joinWith( [ 'rel1' => function($query) {
$query->joinWith( [ 'rel2' => function($query) {
// ...
} ] );
} ] );
```

This is split PR for replace #4570 which I've closed.
So this is important bug in AR. I hope it can be merged ASAP.