gavin1420 / yii-user

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

Property "MyModule.relations" is not defined #18

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a new module that uses application.modules.user.models.User model.
2. Try to load the new module.
3. You'll get the message: ""

I fixed this message changing in the line #76 in User.php file for this one 
(adding isset function to the condition):
if (isset(Yii::app()->controller->module->relations)) 
array_merge($relations,Yii::app()->controller->module->relations);

Please provide any additional information below.
This always happens when modules like HRBACModule, SrbacModule and similar are 
used. I'm using YiiUser svn r50 and Yii svn r2283.

Original issue reported on code.google.com by robregonm on 23 Jul 2010 at 1:40

GoogleCodeExporter commented 9 years ago
fixed r51

Original comment by mish...@gmail.com on 3 Aug 2010 at 8:49