public function addColumns($columns) { foreach ($columns as $name => $value) { try { $this->addColumn($name, $value); } catch (Exception $e) { } } if (!empty($e)) { throw $e; } }