Updated bev import script

This commit is contained in:
Frank Schubert
2022-11-10 11:50:44 +01:00
parent 4323e8e683
commit 990cb53e77
3 changed files with 164 additions and 15 deletions
+7 -1
View File
@@ -50,7 +50,13 @@ class ADBHausnummer extends mfBaseModel {
}
if($name == "plz") {
$this->plz = new ADBPlz($this->plz_id);
$this->plz = mfValuecache::singleton()->get("adbplz-".$this->plz_id);
if($this->plz === null) {
$this->plz = new ADBPlz($this->plz_id);
if($this->plz->id) {
mfValuecache::singleton()->set("adplz-".$this->plz_id, $this->plz);
}
}
return $this->plz;
}