/**
  * {@inheritdoc}
  */
 public function transform($class, array $data, array $defaults = [])
 {
     $entity = parent::transform($class, $data, $defaults);
     $objectManager = $this->doctrine->getManagerForClass($this->productClass);
     $objectManager->persist($entity->getOwner());
     return $entity;
 }
 /**
  * {@inheritdoc}
  */
 public function getTransformedColumnsInfo($class)
 {
     return array_merge(parent::getTransformedColumnsInfo($class), $this->transformedColumns[$this->productValueClass]);
 }
 /**
  * {@inheritdoc}
  */
 public function getTransformedColumnsInfo($class)
 {
     return array_merge(parent::getTransformedColumnsInfo($class), $this->transformedColumns[$this->productManager->getProductValueName()]);
 }
 /**
  * Constructor
  *
  * @param RegistryInterface              $doctrine
  * @param PropertyAccessorInterface      $propertyAccessor
  * @param GuesserInterface               $guesser
  * @param ColumnInfoTransformerInterface $colInfoTransformer
  * @param EntityTransformerInterface     $transformerRegistry
  */
 public function __construct(ManagerRegistry $doctrine, PropertyAccessorInterface $propertyAccessor, GuesserInterface $guesser, ColumnInfoTransformerInterface $colInfoTransformer, EntityTransformerInterface $transformerRegistry)
 {
     parent::__construct($doctrine, $propertyAccessor, $guesser, $colInfoTransformer);
     $this->transformerRegistry = $transformerRegistry;
 }
 /**
  * Constructor
  *
  * @param ManagerRegistry                $doctrine
  * @param PropertyAccessorInterface      $propertyAccessor
  * @param GuesserInterface               $guesser
  * @param ColumnInfoTransformerInterface $colInfoTransformer
  * @param string                         $productClass
  * @param string                         $associationTypeClass
  */
 public function __construct(ManagerRegistry $doctrine, PropertyAccessorInterface $propertyAccessor, GuesserInterface $guesser, ColumnInfoTransformerInterface $colInfoTransformer, $productClass, $associationTypeClass)
 {
     parent::__construct($doctrine, $propertyAccessor, $guesser, $colInfoTransformer);
     $this->productClass = $productClass;
     $this->associationTypeClass = $associationTypeClass;
 }