reference field on form
问题 I think I'm not understanding the reference field. I have a simple form <?php class page_prueba extends Page { function init(){ parent::init(); $p=$this; $f=$p->add('Form'); $f->setSource('ticket'); $f->addField('line','texto')->validateNotNull(); $f->addField('text','detalle')->validateNotNull(); $c=$p->add('Model_Usuario'); $f->addField('reference','usuario')->setValueList($c)->validateNotNull(); } } And I have a User Model <?php class Model_Usuario extends Model_Table { public $entity_code