Bundle/CoreBundle/Cache/Builder/CacheBuilder.php
public function addWidgetBusinessEntity($widgetName, $businessEntity)
    {
        $widgets = $this->cache->get(BusinessEntity::CACHE_WIDGETS, []);
        if (!array_key_exists($widgetName, $widgets)) {
            $widgets[$widgetName] = ['businessEntities' => []];
        }
        $widgets[$widgetName]['businessEntities'][$businessEntity->getId()] = $businessEntity;
        $this->cache->save(BusinessEntity::CACHE_WIDGETS, $widgets);
    }
public function addWidgetBusinessEntity($widgetName, $businessEntity)
    {
        $widgets = $this->cache->get(BusinessEntity::CACHE_WIDGETS, []);
        if (!array_key_exists($widgetName, $widgets)) {
            $widgets[$widgetName] = ['businessEntities' => []];
        }
        $widgets[$widgetName]['businessEntities'][$businessEntity->getId()] = $businessEntity;
        $this->cache->save(BusinessEntity::CACHE_WIDGETS, $widgets);
    }
public function addWidgetBusinessEntity ( $ widgetName , $ businessEntity ) { $ widgets = $ this -> cache -> get ( BusinessEntity :: CACHE_WIDGETS , [ ] ) ; if ( ! array_key_exists ( $ widgetName , $ widgets ) ) { $ widgets [ $ widgetName ] = [ 'businessEntities' => [ ] ] ; } $ widgets [ $ widgetName ] [ 'businessEntities' ] [ $ businessEntity -> getId ( ) ] = $ businessEntity ; $ this -> cache -> save ( BusinessEntity :: CACHE_WIDGETS , $ widgets ) ; }
add a BusinessEntity For Widget.
add a BusinessEntity For Widget .