<?php
namespace App\Entity\Master;
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_m_city_alias")
* @ORM\Entity(repositoryClass="App\Repository\Master\CityAliasRepository")
*/
class CityAlias
{
public function canDelete(){
return true;
}
/**
* @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\Master\City", inversedBy="aliases")
* @ORM\JoinColumn(name="city_id", referencedColumnName="id")
*/
private $city;
//
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 getCity(): ?City
{
return $this->city;
}
public function setCity(?City $city): self
{
$this->city = $city;
return $this;
}
}