Modification of single places is now functional.

This commit is contained in:
2019-06-27 16:33:56 +02:00
parent 2da8da6b37
commit b61df340e8
8 changed files with 153 additions and 41 deletions

View File

@@ -10,6 +10,7 @@ class CommonClubsModelFactoryPlace extends AbstractCommonClubsModelFactory
return array(
new CommonClubsModelColumnString('name', new CommonClubsControllerMappingString('Bezeichnung')),
new CommonClubsModelColumnRef('club', 'CommonClubsModelClub', 'clubid', new CommonClubsControllerMappingRef('Club', new CommonClubsModelFactoryClub())),
new CommonClubsModelColumnString('address', new CommonClubsControllerMappingString('Adresse')),
new CommonClubsModelColumnInt('area', new CommonClubsControllerMappingInt('Fläche', false))
);
}

View File

@@ -25,6 +25,11 @@ class CommonClubsModelPlace extends AbstractCommonClubsModel
return $this->getValues()['area'];
}
public function getAddress()
{
return $this->getValues()['address'];
}
public function setName($name)
{
$this->setValue('name', $name);
@@ -40,4 +45,9 @@ class CommonClubsModelPlace extends AbstractCommonClubsModel
$this->setValue('club', $club);
}
public function setAddress($address)
{
$this->setValue('address', $address);
}
}