framework/db/schema/CDbCommandBuilder.php
protected function ensureTable(&$table)
	{
		if(is_string($table) && ($table=$this->_schema->getTable($tableName=$table))===null)
			throw new CDbException(Yii::t('yii','Table "{table}" does not exist.',
				array('{table}'=>$tableName)));
	}
protected function ensureTable(&$table)
	{
		if(is_string($table) && ($table=$this->_schema->getTable($tableName=$table))===null)
			throw new CDbException(Yii::t('yii','Table "{table}" does not exist.',
				array('{table}'=>$tableName)));
	}
protected function ensureTable ( & $ table ) { if ( is_string ( $ table ) && ( $ table = $ this -> _schema -> getTable ( $ tableName = $ table ) ) === null ) throw new CDbException ( Yii :: t ( 'yii' , 'Table "{table}" does not exist.' , array ( '{table}' => $ tableName ) ) ) ; }
Checks if the parameter is a valid table schema.
If it is a string, the corresponding table schema will be retrieved.
@param mixed $table table schema ({@link CDbTableSchema}) or table name (string).
If this refers to a valid table name, this parameter will be returned with the corresponding table schema.
@throws CDbException if the table name is not valid
Checks if the parameter is a valid table schema . If it is a string the corresponding table schema will be retrieved .