protected function getIsView($tableName)
{
$sql = 'SELECT count(*) FROM sqlite_master WHERE type="view" AND name= :table';
$this->getDbConnection()->setActive(true);
$command = $this->getDbConnection()->createCommand($sql);
$command->bindValue(':table', $tableName);
return intval($command->queryScalar()) === 1;
}