<?php
namespace App\Entity\Slave;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="eposm_s_operation_subject_mapping")
* @ORM\Entity(repositoryClass="App\Repository\Slave\OperationSubjectMappingRepository")
*/
class OperationSubjectMapping
{
public function __toString()
{
return $this->getValue();
}
/**
* @ORM\Column(name="id", type="bigint")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;
/**
* @ORM\Column(name="value", type="string", length=191)
*/
protected $value;
// ManyToOne
/**
* @ORM\ManyToOne(targetEntity="App\Entity\Slave\Operation", inversedBy="subjectMappings")
* @ORM\JoinColumn(name="operation_id", referencedColumnName="id")
*/
private $operation;
//
public function getId(): ?string
{
return $this->id;
}
public function getValue(): ?string
{
return $this->value;
}
public function setValue(string $value): self
{
$this->value = $value;
return $this;
}
public function getOperation(): ?Operation
{
return $this->operation;
}
public function setOperation(?Operation $operation): self
{
$this->operation = $operation;
return $this;
}
}