public function addAuthorizationMapping($entity, $mapping)
    {
        $classname = get_class($entity);
        if (!isset($this->rights[$classname])) {
            $this->buildRights($classname);
        }

        $this->rights[$classname] = array_merge($this->rights[$classname], $mapping);

        return $this;
    }
public function addAuthorizationMapping($entity, $mapping)
    {
        $classname = get_class($entity);
        if (!isset($this->rights[$classname])) {
            $this->buildRights($classname);
        }

        $this->rights[$classname] = array_merge($this->rights[$classname], $mapping);

        return $this;
    }
public function addAuthorizationMapping ( $ entity , $ mapping ) { $ classname = get_class ( $ entity ) ; if ( ! isset ( $ this -> rights [ $ classname ] ) ) { $ this -> buildRights ( $ classname ) ; } $ this -> rights [ $ classname ] = array_merge ( $ this -> rights [ $ classname ] , $ mapping ) ; return $ this ; }
Add authorization mapping for entity.

@param object $entity
@param array  $mapping

@return self
Add authorization mapping for entity .