Bundle/WidgetMapBundle/Entity/Slot.php
public function updateWidgetMap($widgetMap)
    {
        //parse all widfgetMaps
        foreach ($this->widgetMaps as $key => $_widgetMap) {
            //if this the widgetMap we are looking for
            if ($_widgetMap->getWidgetId() === $widgetMap->getWidgetId()) {
                $this->widgetMaps[$key] = $widgetMap;
                //there no need to continue, we found the slot
                break;
            }
        }

        return $this;
    }
public function updateWidgetMap($widgetMap)
    {
        //parse all widfgetMaps
        foreach ($this->widgetMaps as $key => $_widgetMap) {
            //if this the widgetMap we are looking for
            if ($_widgetMap->getWidgetId() === $widgetMap->getWidgetId()) {
                $this->widgetMaps[$key] = $widgetMap;
                //there no need to continue, we found the slot
                break;
            }
        }

        return $this;
    }
public function updateWidgetMap ( $ widgetMap ) { //parse all widfgetMaps foreach ( $ this -> widgetMaps as $ key => $ _widgetMap ) { //if this the widgetMap we are looking for if ( $ _widgetMap -> getWidgetId ( ) === $ widgetMap -> getWidgetId ( ) ) { $ this -> widgetMaps [ $ key ] = $ widgetMap ; //there no need to continue, we found the slot break ; } } return $ this ; }
Update the given widgetMap.

@param WidgetMap $widgetMap

@return Slot
Update the given widgetMap .