Class Form

How to query data from related models? $form->add(new Text("hp", hp - $units->stats->hp foto http://pixs.ru/showimage/diogrammaj_7914733_14261394.jpg

protected function getForm($entity = null, $edit = false) { $form = new Form($entity);

    $form->add(new Text("id", array(               
        "size" => 10,
        "maxlength" => 10,
    )));

    $form->add(new Text("name", array(
        "size" => 24,
        "maxlength" => 70
    )));

    $form->add(new Text("hp", array(
        "size" => 10,
        "maxlength" => 30
    )));

    $form->add(new Text("attack", array(
        "size" => 14,
        "maxlength" => 40
    )));

    $form->add(new Text("spell", array(
        "size" => 14,
        "maxlength" => 40
    )));

    return $form;
}

hp - does not show