public function saveToDB($prop = NULL) { if (isset($this->objects)) { foreach ($this->objects as $page => $object) { /** @var $object DBObject */ $this->{$page . '_' . $object->getPKey()} = $object->saveToDB(); } } return parent::saveToDB($prop); }