protected function setEntityRules($rules = [])
    {
        $this->entityLocalRules = $rules;
        $cache = $this->getCache();
        if ($cache) {
            $tagDependency = new TagDependency(
                ['tags' => [$this->getEntityRulesCacheTag()]]
            );
            $cache->set($this->getEntityRulesCacheKey(), $rules, 0, $tagDependency);
        }
    }
protected function setEntityRules($rules = [])
    {
        $this->entityLocalRules = $rules;
        $cache = $this->getCache();
        if ($cache) {
            $tagDependency = new TagDependency(
                ['tags' => [$this->getEntityRulesCacheTag()]]
            );
            $cache->set($this->getEntityRulesCacheKey(), $rules, 0, $tagDependency);
        }
    }
protected function setEntityRules ( $ rules = [ ] ) { $ this -> entityLocalRules = $ rules ; $ cache = $ this -> getCache ( ) ; if ( $ cache ) { $ tagDependency = new TagDependency ( [ 'tags' => [ $ this -> getEntityRulesCacheTag ( ) ] ] ) ; $ cache -> set ( $ this -> getEntityRulesCacheKey ( ) , $ rules , 0 , $ tagDependency ) ; } }
Set entity rules.
@param array $rules
Set entity rules .