src/Repository/ManagedRepositoryTrait.php
public function fetchReferences($refs = true, $soft = false)
    {
        $this->fetchRefs = $refs;
        $this->softRefs = $soft;
        return $this;
    }
public function fetchReferences($refs = true, $soft = false)
    {
        $this->fetchRefs = $refs;
        $this->softRefs = $soft;
        return $this;
    }
public function fetchReferences ( $ refs = true , $ soft = false ) { $ this -> fetchRefs = $ refs ; $ this -> softRefs = $ soft ; return $ this ; }
Change reference fetching behavior.

@param array|boolean $refs   Array of references to include in fetch operations (pass true to fetch all or false to fetch none).
@param boolean       $soft   Whether to take soft-deletion into account when fetching references.

@return self
Change reference fetching behavior .