sarvan75 / yii-user-management

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

CException on fresh install: Property "UserModule.userRoleTable" is not defined. #172

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. follow install instructions
2. run installer

Note: using table prefix

CException

Property "UserModule.userRoleTable" is not defined.

C:\xampplite\yii\framework\base\CModule.php(88)

076     /**
077      * Getter magic method.
078      * This method is overridden to support accessing application components
079      * like reading module properties.
080      * @param string $name application component or property name
081      * @return mixed the named property value
082      */
083     public function __get($name)
084     {
085         if($this->hasComponent($name))
086             return $this->getComponent($name);
087         else
088             return parent::__get($name);
089     }
090 
091     /**
092      * Checks if a property value is null.
093      * This method overrides the parent implementation by checking
094      * if the named application component is loaded.
095      * @param string $name the property name or the event name
096      * @return boolean whether the property value is null
097      */
098     public function __isset($name)
099     {
100         if($this->hasComponent($name))

Original issue reported on code.google.com by JJHayes...@gmail.com on 20 Nov 2011 at 8:10

GoogleCodeExporter commented 9 years ago
Adding this got me past the error.  Looks like this line was removed in r408.

private $_tables = array(
  'userRole' => 'user_role',
);

Original comment by JJHayes...@gmail.com on 20 Nov 2011 at 8:18