public function setWidgets(array $widgets = array()) { foreach ($widgets as $order => $widgetId) { $widget = new WidgetManagerDecorator($widgetId); $widget->update(array('fk_widgetcontext_id' => $this->getId(), 'order' => $order)); } return TRUE; }