public function resolveAssociationEntries(EntityManagerInterface $em)
    {
        return array_map(function($value) use ($em) {
            if ( ! ($value instanceof AssociationCacheEntry)) {
                return $value;
            }

            return $em->getReference($value->class, $value->identifier);
        }, $this->data);
    }