yiisoft/yii — pull request #878 by klimov-paul (2012-06-25 11:47:53+00:00)
Title: Issue#636 many to many relation resolves junction data on its own

I have updated "CManyManyRelation" and "CActiveFinder", allowing the foreign key to be parsed inside the relation code.
Unit tests "framework/db/ar/*" have been passed without errors, however some were skipped, so I can not garantee...

Note: there is still method "CStatElement::query()", which performs similar preg match, however it works with STAT relations, so I keep it as origin. It is up to you to make decision about it.