public function __construct(IMapper $targetMapper, PropertyMetadata $metadata) { $this->metadata = $metadata; $this->joinStorageKey = $targetMapper->getStorageReflection()->convertEntityToStorageKey($this->metadata->relationship->property); }