hi,
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
IssueTest.php
<?php
class IssueTest extends CDbTestCase
{
public function testGetTypes()
{
$options = Issue::model()->typeOptions;
$this->assertTrue(is_array($options));
}
}
Issue.php
public function getTypeOptions()
{
return array();
}
it should have passed the initial unit test right ?