- <?php
- namespace App\Entity;
- use App\Repository\AuxCityRepository;
- use Doctrine\ORM\Mapping as ORM;
- /**
-  * @ORM\Entity(repositoryClass=AuxCityRepository::class)
-  */
- class AuxCity
- {
-     /**
-      * @ORM\Id
-      * @ORM\GeneratedValue
-      * @ORM\Column(type="integer")
-      */
-     private $id;
-     /**
-      * @ORM\Column(type="string", length=50)
-      */
-     private $name;
-     /**
-      * @ORM\ManyToOne(targetEntity=AuxCountry::class, inversedBy="auxCities")
-      * @ORM\JoinColumn(onDelete="CASCADE")
-      * @ORM\JoinColumn(nullable=false)
-      */
-     private $aux_country;
-     public function getId(): ?int
-     {
-         return $this->id;
-     }
-     public function getName(): ?string
-     {
-         return $this->name;
-     }
-     public function setName(string $name): self
-     {
-         $this->name = $name;
-         return $this;
-     }
-     public function getAuxCountry(): ?AuxCountry
-     {
-         return $this->aux_country;
-     }
-     public function setAuxCountry(?AuxCountry $aux_country): self
-     {
-         $this->aux_country = $aux_country;
-         return $this;
-     }
- }
-