yiisoft/yii — pull request #1517 by paystey (2012-10-02 16:19:21+00:00)
Title: [WIP] Add reference to parent on ActiveRecord Relations

Solves #1516

Work in progress, I've been using it for a few hours without issue but I'd imagine this is something that needs testing well.