kumarsivarajan / yii-usergroups

Automatically exported from code.google.com/p/yii-usergroups
0 stars 0 forks source link

Profile extension #29

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Implement profile extension using instructions
2. Try to log in and get a column not found error

What is the expected output? What do you see instead?
Column not found SQL error.

What version of the product are you using? On what operating system?
v1.8

Please provide any additional information below.
Fixed the issue by changing line 302 in UserGroupsUser.php from:

$relations['rel'.$p] = array(self::HAS_ONE, $p, 'user_id');

TO

$relations['rel'.$p] = array(self::HAS_ONE, $p, 'ug_id');

Instructions call for a column named "ug_id". Code looks for "user_id" in 
profile extension table.

Original issue reported on code.google.com by wats...@gmail.com on 16 Apr 2012 at 5:50