public function addTable(Table $table, $alias = null) { if ($alias == null) { $alias = $table->getTableName(); } $this->_tables[$alias] = $table; return $this; }