Ticket #3500: updateDefaultsFromObject.diff
| File updateDefaultsFromObject.diff, 0.9 kB (added by thomas.s, 5 months ago) |
|---|
-
/Users/thomas/Workspace/erfahrung/symfony11/plugins/sfDoctrinePlugin/data/generator/sfDoctrineForm/default/template/sfDoctrineFormGeneratedTemplate.php
old new 64 64 $values = array(); 65 65 foreach ($this->object-><?php echo $relation['alias']; ?> as $obj) 66 66 { 67 $values[] = $obj-><?php echo $relation->getForeignFieldName(); ?>;67 $values[] = current($obj->identifier()); 68 68 } 69 69 70 70 $this->setDefault('<?php echo $this->underscore($relation['refTable']->getOption('name')) ?>_list', $values);