My favorites | Sign in
Project Logo
yii
             
New issue | Search
for
| Advanced search | Search tips
Issue 659: Generate model for tables with prefix without specifying prefix in shell command
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  qiang.xue
Closed:  Nov 01
Priority-Medium
Milestone-1.1b


Sign in to add a comment
 
Reported by wapr...@gmail.com, Nov 01, 2009
What steps will reproduce the problem?
1. configure CDbConnection::tablePrefix eg: 'yii_'
2. create table in db with prefix, eg: yii_test
3. run protected/yiic shell, try to generate a model 'model Test'

What is the expected output?
Warning: tablename does not exist in database.

The output is as expected but i think there should be a way to generate 
models from prefixed tables without using the prefix in model command for 
shell like 'model yii_test' since i do not want my model to be named 
'yii_test' but instead to be named 'test' or 'Test'. Maybe the shell tool 
could search for yii_test instead of test when CDbConnection::tablePrefix 
is set.

What version of the product are you using? On what operating system?
1.1b, Windows XP (wampserver)
Comment 1 by qiang.xue, Nov 01, 2009
(No comment was entered for this change.)
Labels: -Milestone-1.0.11 Milestone-1.1b
Comment 2 by qiang.xue, Nov 01, 2009
This issue was closed by revision r1499.
Status: Fixed
Mergedinto: -
Sign in to add a comment

Hosted by Google Code