mishamx/yii-user — pull request #42 by wichura (2013-05-25 08:29:26+00:00)
Title: Removed assumption that Pk is called 'id'

Hi mishamx,
First of all thank you for this plugin - it's proved very helpful in many of my projects.

In the most recent one I used UWdropDownDep class and I run into an issue where in the class it would be assumed that my Pk is called 'id'. The convention I follow states that all column names start with a capital letter, so in my case it was 'Id' and the code would break.

I've updated the logic to pull the actual name of the Pk using pure Yii. Hopefully you'll agree that this is more elegant solution.

On a final note, this is my first ever pull request, so if I'm missing anything from it let me know.

Cheers,
Marcin