[SOLVED] {{issue}} cannot be found


why am i getting this error ?

it says, Issue cannot be found in the database, but tbl_issue does exists,

and also, I did indicated in the main.php file the tablePrefix => ‘tbl_’

and when I created the Issue model, I indicated the ‘tbl’ prefix also in the gii UI,

why is this happening?

I followed the snippet on the book



class IssueTest extends CDbTestCase


    public function testGetTypes()


        $options = Issue::model()->typeOptions;






    public function getTypeOptions()


        return array();


it should have passed the initial unit test right ?

problem solved…

the reason why it failed and was looking for the issue is because,

the test db should have the exact tables that the development db has.