/** * @param Column $column * @return string */ protected function _renderColumnWithAlias(Column $column) { if (($alias = $column->getAlias()) && !$column->isAll()) { return $this->_renderColumn($column) . " AS " . $this->_renderAlias($alias); } return $this->_renderColumn($column); }
public function testAlias() { $col = new Column("id", "project"); $col->setAlias("project_id"); $this->assertEquals("project_id", $col->getAlias()); }