private function fillRelation($property, array $element)
{
if (!class_exists($type = PPUtils::propertyType($this, $property))) {
trigger_error("Class {$type} not found.", E_USER_NOTICE);
return;
// just ignore
}
if (isset($element['num'])) {
// array of objects
$this->{$property}[$element['num']] = $item = new $type();
$item->init($element['children'], false);
} else {
$this->{$property} = new $type();
$this->{$property}->init($element["children"], false);
}
}