src/Sp/FixtureDumper/Mapping/MongoDB/ClassMetadataProxy.php
protected function initMappings()
    {
        if ($this->initialized) {
            return $this;
        }

        foreach ($this->classMetadata->fieldMappings as $key => $mapping) {
            if (isset($mapping['reference'])) {
                $this->associationMappings[$key] = $mapping;
            } else {
                $this->fieldMappings[$key] = $mapping;
            }
        }

        $this->initialized = true;

        return $this;
    }
protected function initMappings()
    {
        if ($this->initialized) {
            return $this;
        }

        foreach ($this->classMetadata->fieldMappings as $key => $mapping) {
            if (isset($mapping['reference'])) {
                $this->associationMappings[$key] = $mapping;
            } else {
                $this->fieldMappings[$key] = $mapping;
            }
        }

        $this->initialized = true;

        return $this;
    }
Initialize the mappings from the class metadata.
The mapping will be split in field mappings and association mappings.

@return ClassMetadataProxy