public function setCircularReferenceLimit($circularReferenceLimit)
    {
        @trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.2, use the "circular_reference_limit" key of the context instead.', __METHOD__), E_USER_DEPRECATED);

        $this->defaultContext[self::CIRCULAR_REFERENCE_LIMIT] = $this->circularReferenceLimit = $circularReferenceLimit;

        return $this;
    }
public function setCircularReferenceLimit($circularReferenceLimit)
    {
        @trigger_error(sprintf('The "%s()" method is deprecated since Symfony 4.2, use the "circular_reference_limit" key of the context instead.', __METHOD__), E_USER_DEPRECATED);

        $this->defaultContext[self::CIRCULAR_REFERENCE_LIMIT] = $this->circularReferenceLimit = $circularReferenceLimit;

        return $this;
    }
public function setCircularReferenceLimit ( $ circularReferenceLimit ) { @ trigger_error ( sprintf ( 'The "%s()" method is deprecated since Symfony 4.2, use the "circular_reference_limit" key of the context instead.' , __METHOD__ ) , E_USER_DEPRECATED ) ; $ this -> defaultContext [ self :: CIRCULAR_REFERENCE_LIMIT ] = $ this -> circularReferenceLimit = $ circularReferenceLimit ; return $ this ; }
Sets circular reference limit.

@deprecated since Symfony 4.2

@param int $circularReferenceLimit Limit of iterations for the same object

@return self
Sets circular reference limit .