protected function setEntityBehaviors($behaviors)
    {
        $this->entityLocalBehaviors = $behaviors;
        $cache = $this->getCache();
        if ($cache) {
            $tagDependencyConfig = ['tags' => [$this->getEntityBehaviorsCacheTag()]];
            $tagDependency = new TagDependency($tagDependencyConfig);
            $cache->set($this->getEntityBehaviorsCacheKey(), $behaviors, 0, $tagDependency);
        }
    }
protected function setEntityBehaviors($behaviors)
    {
        $this->entityLocalBehaviors = $behaviors;
        $cache = $this->getCache();
        if ($cache) {
            $tagDependencyConfig = ['tags' => [$this->getEntityBehaviorsCacheTag()]];
            $tagDependency = new TagDependency($tagDependencyConfig);
            $cache->set($this->getEntityBehaviorsCacheKey(), $behaviors, 0, $tagDependency);
        }
    }
protected function setEntityBehaviors ( $ behaviors ) { $ this -> entityLocalBehaviors = $ behaviors ; $ cache = $ this -> getCache ( ) ; if ( $ cache ) { $ tagDependencyConfig = [ 'tags' => [ $ this -> getEntityBehaviorsCacheTag ( ) ] ] ; $ tagDependency = new TagDependency ( $ tagDependencyConfig ) ; $ cache -> set ( $ this -> getEntityBehaviorsCacheKey ( ) , $ behaviors , 0 , $ tagDependency ) ; } }
Set the entity behaviors.
@param array $behaviors
Set the entity behaviors .