* fault-type added

* expensive confirm step is now mandatory
This commit is contained in:
Danyi Dávid
2019-01-29 08:54:51 +01:00
parent 84750f8ac3
commit cee4134a21
2 changed files with 31 additions and 5 deletions

View File

@@ -37,6 +37,12 @@ class Fault implements JsonSerializable
*/
private $worksheetNumber;
/**
* @ORM\Column(name="fault_type", type="string", length=30, nullable=true, options={"default": "uzemeltetesi"})
* @var string
*/
private $faultType;
/**
* @ORM\JoinColumn(name="facility_location_id", nullable=false)
* @ORM\ManyToOne(targetEntity="FacilityLocation", inversedBy="faults")
@@ -271,6 +277,24 @@ class Fault implements JsonSerializable
return $this;
}
/**
* @return string
*/
public function getFaultType(): ?string
{
return $this->faultType;
}
/**
* @param string $faultType
* @return Fault
*/
public function setFaultType(?string $faultType): Fault
{
$this->faultType = $faultType;
return $this;
}
/**
* @return FacilityLocation
*/
@@ -868,6 +892,7 @@ class Fault implements JsonSerializable
{
return [
'id' => $this->id,
'faultType' => $this->getFaultType(),
'facilityLocation' => $this->getFacilityLocation(),
'facilityLocationDescription' => $this->getFacilityLocationDescription(),
'errorCategory' => $this->getErrorCategory(),
@@ -905,6 +930,7 @@ class Fault implements JsonSerializable
{
return [
'id' => $this->id,
'faultType' => $this->getFaultType(),
'facilityLocation' => $this->getFacilityLocation()->getId(),
'facilityLocationDescription' => $this->getFacilityLocationDescription(),
'errorCategory' => $this->getErrorCategory()->getId(),