<?php
class Vpc_Abstract_List_Form extends Vps_Form_NonTableForm
{
    public function __construct($name, $class)
    {
        parent::__construct($name, $class);
        $this->setProperty('class', $class);
        $this->add($this->_getMultiFields());
    }
    
    protected function _getMultiFields()
    {
        $multifields = new Vpc_Abstract_Field_MultiFields($this->getClass());
        $multifields->setReferences(array(
            'columns' => array('component_id'),
            'refColumns' => array('id')
        ));
        $multifields->setMinEntries(0);
        $multifields->fields->add(new Vps_Form_Field_Checkbox('visible', trlVps('Visible')));
        $multifields->setPosition(true);

        $form = Vpc_Abstract_Form::createChildComponentForm($this->getClass(), 'child');
        $form->setIdTemplate('{component_id}-{id}');
        $multifields->fields->add($form);
        
        return $multifields;
    }
    
}
<?php
class Vpc_Abstract_List_Form extends Vpc_Abstract_Form
{
    public function __construct($name, $class)
    {
        parent::__construct($name, $class);
        $this->setProperty('class', $class);
        $this->add($this->_getMultiFields());
    }
    
    protected function _getMultiFields()
    {
        $multifields = new Vps_Form_Field_MultiFields('Children');
        $multifields->setMinEntries(0);
        $multifields->fields->add(new Vps_Form_Field_Checkbox('visible', trlVps('Visible')));
        $multifields->setPosition(true);

        $form = Vpc_Abstract_Form::createChildComponentForm($this->getClass(), 'child');
        $form->setIdTemplate('{component_id}-{id}');
        $multifields->fields->add($form);
        
        return $multifields;
    }
    
}
Fix MultiFields admin mit unterkomponenten
Fix MultiFields admin mit unterkomponenten

statt NonTableForm Form mit OwnModel verwenden, das es ja jetzt gibt.
Macht alles viel einfacher.

problem war dass die list row _nach_ der child row gespeichert wurde und die
child row daher keine id hatte

(von niko)
