public function testSchema()
 {
     $table = new Table("project");
     $this->assertNull($table->getSchema());
     $table = new Table("project", "dbo");
     $this->assertEquals("dbo", $table->getSchema());
 }
Exemplo n.º 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;
 }