public function __construct(Connection $connection, IMapper $targetMapper, PropertyMetadata $metadata) { $this->connection = $connection; $this->targetRepository = $targetMapper->getRepository(); $this->metadata = $metadata; }