public function __construct(Context $context, IMapper $targetMapper, PropertyMetadata $metadata)
{
$this->context = $context;
$this->targetMapper = $targetMapper;
$this->targetRepository = $targetMapper->getRepository();
$this->metadata = $metadata;
$this->joinStorageKey = $targetMapper->getStorageReflection()->convertEntityToStorageKey($this->metadata->relationshipProperty);
}