public function returning() { $number = func_num_args(); for ($i = 0; $i < $number; $i++) { array_push($this->returning, ColumnManager::getColumn()); } return $this; }
function g($columns = null) { if ($columns instanceof PersistenceModel) { $columns = func_num_args(); } $list = array(); for ($i = 0; $i < $columns; $i++) { $col = ColumnManager::getColumn(); array_push($list, $col); } return $list; }
public static function __as__($alias) { $column = ColumnManager::getColumn(); return ColumnManager::addColumn(array('column' => $column, 'alias' => $alias)); }
public function __get($name) { $fullname = ($this->relation ? "{$this->relation}." : "") . ($this->name ? "{$this->name}" : ""); return ColumnManager::addColumn(new PersistenceModel($fullname, $name)); }