/** * @param Table $table */ public function addTable(Table $table) { $table->attach($this); $this->tables[] = $table; }