public function testView()
 {
     $table = new Table("orders_stat");
     $this->assertFalse($table->isView());
     $table->setView(true);
     $this->assertTrue($table->isView());
 }
Beispiel #2
0
 /**
  * @param Table $table
  * @return string
  */
 protected function _renderTableWithAlias(Table $table)
 {
     $alias = $table->getAlias() ? " AS {$this->_renderAlias($table->getAlias())}" : '';
     $schema = $table->getSchema() ? "{$this->_renderTableSchema($table)}." : '';
     return $schema . $this->_renderTableName($table) . $alias;
 }