name = $name; $this->state = $state; $this->travels = new ArrayCollection(); $this->attractions = new ArrayCollection(); } public function getId() { return $this->id; } public function setId($id) { $this->id = $id; } public function getName() { return $this->name; } public function setName($name) { $this->name = $name; } public function getState() { return $this->state; } public function setState(State $state) { $this->state = $state; } public function addTravel(Travel $travel) { $this->travels[] = $travel; } public function getTravels() { return $this->travels; } public function addAttraction(Attraction $attraction) { $this->attractions[] = $attraction; } public function getAttractions() { return $this->attractions; } public static function loadMetadata(\Doctrine\ORM\Mapping\ClassMetadataInfo $metadata) { include __DIR__ . '/../../ORM/Mapping/php/Doctrine.Tests.Models.Cache.City.php'; } }