Adds ActiveRecord relations by arbitrary columns to Yii Framework