Hello,… I am a newbie here, sorry for my bad english,
I start using yii authorization feature,
:using CDBAuthManager
:using ORACLE 10g
:using last yii version (got from svn)
:has created table AuthAssignment,AuthItem and AuthItemChild, using schema in framework
:has setup in main.php(config), component authManager
:has created
-
role authenticated, bizRule=> ‘return !Yii::app()->user->isGuest;’
-
role guest, bizRule => ‘return Yii::app()->user->isGuest;’
:has assign userid and role name using $auth->assign(‘admin’,1);, 1 is the userid one of my user
:put Yii::app()->user->checkAccess(‘admin’) at the beginning one of my controller
The problem is… I got error like this :
CDbCommand failed to execute the SQL statement: SQLSTATE[HY000] [904] OCIStmtExecute: ORA-00904: "USERID": invalid identifier. The SQL statement executed was: SELECT *
FROM "AuthAssignment"
WHERE userid=:userid
for comparation, above mentioned error would not happen when I use sqlite database for the authManager db.
Could someone help me? or face the same problem with me? I still hope can use oracle db for authManager db.
Thank you