yiisoft/yii — pull request #3024 by nineinchnick (2013-11-07 22:48:14+00:00)
Title: Support MANY_MANY relations when using 'through' option

Resolves #3018.

This got mixed up with PR #3016. I could rebase it after accepting the previous PR to make code changes clearer or just check out two last commits, they're independent.