platform dupped

This commit is contained in:
2022-05-25 12:05:39 +02:00
parent 258c79b954
commit 2a5ee7b16b
9 changed files with 58 additions and 25 deletions

View File

@ -16,6 +16,9 @@ class MerBeDM extends MerService implements OttInterface
#[ORM\Column(type: 'string', length: 255)]
private $activation_code;
#[ORM\OneToOne(targetEntity: MerDM::class, cascade: ['persist'])]
private MerDM $platform;
// public function getId(): ?int
// {
// return $this->id;
@ -32,4 +35,16 @@ class MerBeDM extends MerService implements OttInterface
return $this;
}
public function getPlatform(): ?MerDM
{
return $this->platform;
}
public function setPlatform(?MerDM $platform): self
{
$this->platform = $platform;
return $this;
}
}

View File

@ -16,6 +16,9 @@ class MerParaDM extends MerService implements OttInterface
#[ORM\Column(type: 'string', length: 255)]
private $product_code;
#[ORM\OneToOne(targetEntity: MerDM::class, cascade: ['persist'])]
private MerDM $platform;
// public function getId(): ?int
// {
// return $this->id;
@ -32,4 +35,16 @@ class MerParaDM extends MerService implements OttInterface
return $this;
}
public function getPlatform(): ?MerDM
{
return $this->platform;
}
public function setPlatform(?MerDM $platform): self
{
$this->platform = $platform;
return $this;
}
}

View File

@ -16,6 +16,9 @@ class MerParaDT extends MerService implements OttInterface
#[ORM\Column(type: 'string', length: 255)]
private $api_key;
#[ORM\OneToOne(targetEntity: MerDT::class, cascade: ['persist'])]
private MerDT $platform;
// public function getId(): ?int
// {
// return $this->id;
@ -32,4 +35,16 @@ class MerParaDT extends MerService implements OttInterface
return $this;
}
public function getPlatform(): ?MerDT
{
return $this->platform;
}
public function setPlatform(?MerDT $platform): self
{
$this->platform = $platform;
return $this;
}
}

View File

@ -27,9 +27,6 @@ abstract class MerService
#[ORM\Column(type: 'json', nullable: true)]
private $metadata = [];
#[ORM\OneToOne(targetEntity: Platform::class, cascade: ['persist'], mappedBy: 'ott')]
private Platform $platform;
public function getId(): ?int
{
return $this->id;
@ -58,16 +55,4 @@ abstract class MerService
return $this;
}
public function getPlatform(): ?Platform
{
return $this->platform;
}
public function setPlatform(?Platform $platform): self
{
$this->platform = $platform;
return $this;
}
}