crud shell command dowsn't work when table name differs from model name

Hello…

I used the shell interface to generate CRUD operations for a table. That table has a prefix. The model was created using the command "model Table prefix_table". All worked perfect.

Immediately after created the model, I used "crud Table" to generate the CRUD operations, but a lot of errors were displayed, telling that "Table" cannot be found in database.

I ran "crud Table" again and an error telling that table "Table" must have a primary key was displayed.

I exited shell command and re-entered. Then I ran "crud Table" again and the CRUD operations were created.

Strange, isn’t it?

Jaime

IIRC I’ve also seen something similar in 1.0.8 or 1.0.9 and I have a feeling it’s related to this

http://code.google.com/p/yii/issues/detail?id=593

/Tommy

did it look like this?

http://code.google.com/p/yii/issues/detail?id=464