public function __construct($table = null, array $columns = null) { if (isset($table)) { $this->setTable($table); } $this->joinQuery = new JoinQuery($this); $this->columnQuery = new ColumnQuery($this, $this->joinQuery, $columns); }