sarvan75 / yii-user-management

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

Problem with Yum::resolveTableName and table prefix #83

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Yum::resolveTableName seems to cause problems when there is a table prefix, for 
example I have prefix "pad_" and I get errors about "pad_pad_users" non present 
(which is incorrect, since the table is pad_users).

Suggested fixes for all problems:
- Simplify resolveTableName, by letting Yii itself to replace {{}}
- Use resolveTableName only for the installer, NOT in the model classes
- Everywhere else, use {{}} names as the default when not specified in the 
configuration (that's why resolveTableName is no longer needed except for the 
installer).

Please find attached the patched files.

If you provide me with commit access to this project, I'm interested in 
submitting improvements/fixes while I work on it for my project.

Original issue reported on code.google.com by enrico.d...@gmail.com on 11 Aug 2010 at 4:26

Attachments:

GoogleCodeExporter commented 9 years ago
thank you for your patches. the resolveTableName should work again. Please 
contact me if you still want to contribute to Yum, i can give you direct svn 
commit access.

Original comment by thyseus on 17 Dec 2010 at 3:44

GoogleCodeExporter commented 9 years ago
This is still not working. I use latest version.

Original comment by write2ch...@gmail.com on 5 May 2011 at 3:15