/**
  * @param string      $name
  * @param string      $targetModel
  * @param string|null $inversedBy
  */
 public function __construct($name, $targetModel, $inversedBy = null)
 {
     parent::__construct($name, $targetModel);
     $this->inversedBy = $inversedBy;
 }
 /**
  * @param string $name
  * @param string $targetModel
  * @param string $mappedBy
  */
 public function __construct($name, $targetModel, $mappedBy)
 {
     parent::__construct($name, $targetModel);
     $this->mappedBy = $mappedBy;
 }