public function OnLoadPageData() { $id = $this->school_manager->GetItemId(); $this->school_manager->ReadById(array($id)); $this->school = $this->school_manager->GetFirst(); unset($this->school_manager); $this->ground_manager->ReadGroundForSchool($this->school); $ground = $this->ground_manager->GetFirst(); if ($ground instanceof Ground) { $this->school->Ground()->SetId($ground->GetId()); $this->school->Ground()->SetAddress($ground->GetAddress()); } }