Bundle/WidgetMapBundle/Entity/Slot.php
public function removeWidgetMap(WidgetMap $widgetMap)
    {
        $widgetMaps = $this->widgetMaps;

        //parse the widgets maps
        foreach ($widgetMaps as $index => $wm) {
            if ($wm->getWidgetId() === $widgetMap->getWidgetId()) {
                unset($this->widgetMaps[$index]);
                //entity found, there is no need to continue
                break;
            }
        }
    }
public function removeWidgetMap(WidgetMap $widgetMap)
    {
        $widgetMaps = $this->widgetMaps;

        //parse the widgets maps
        foreach ($widgetMaps as $index => $wm) {
            if ($wm->getWidgetId() === $widgetMap->getWidgetId()) {
                unset($this->widgetMaps[$index]);
                //entity found, there is no need to continue
                break;
            }
        }
    }
public function removeWidgetMap ( WidgetMap $ widgetMap ) { $ widgetMaps = $ this -> widgetMaps ; //parse the widgets maps foreach ( $ widgetMaps as $ index => $ wm ) { if ( $ wm -> getWidgetId ( ) === $ widgetMap -> getWidgetId ( ) ) { unset ( $ this -> widgetMaps [ $ index ] ) ; //entity found, there is no need to continue break ; } } }
Remove the widget map from the slot.

@param WidgetMap $widgetMap
Remove the widget map from the slot .