TimKan 2012-12-18 22:40:24 3488次浏览 1条回复 0 0 0

I was going to report a bug, but since I'm new to Yii, I don't know if this is the desired behavior.

What steps will reproduce the problem? Following along in Agile Web Application Development book

  1. Create two databases (mine were trackstar_dev and trackstar_test)
  2. Set up one database under db in config/main.php (_dev in my case)
  3. Set up the other database under db in config/test.php
  4. Add one table with same name to both databases. Model generator works in this instance.
  5. Add another table to the test database only. Model generator does not work, fails with "Table 'tablename' does not exist"

What is the expected output? What do you see instead? Expect Gii to generate a model; get "Table 'tablename' does not exist" error. pls help and appreciated highly!

您需要登录后才可以回复。登录 | 立即注册