Development

Changeset 8387

You must first sign up to be able to contribute.

Changeset 8387

Show
Ignore:
Timestamp:
04/10/08 16:27:22 (7 months ago)
Author:
fabien
Message:

simplified generated form a bit (thanks to the new ->getValue() method)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/plugins/sfPropelPlugin/data/generator/sfPropelForm/default/template/sfPropelFormGeneratedTemplate.php

    r8384 r8387  
    107107    <?php echo $tables['middleTable']->getPhpName() ?>Peer::doDelete($c, $con); 
    108108 
    109     $values = $this->getValues(); 
    110     if (is_array($values['<?php echo $tables['middleTable']->getName() ?>_list'])) 
     109    $values = $this->getValue('<?php echo $tables['middleTable']->getName() ?>_list'); 
     110    if (is_array($values)) 
    111111    { 
    112       foreach ($values['<?php echo $tables['middleTable']->getName() ?>_list'] as $value) 
     112      foreach ($values as $value) 
    113113      { 
    114114        $obj = new <?php echo $tables['middleTable']->getPhpName() ?>();