Ticket #576: jDaoGenerator.class.php.diff
| File jDaoGenerator.class.php.diff, 0.9 kB (added by thomas, 3 months ago) |
|---|
-
lib/jelix/dao/jDaoGenerator.class.php
old new 310 310 foreach($method->getValues() as $propname=>$value){ 311 311 if($value[1]){ 312 312 foreach($method->getParameters() as $param){ 313 $value[0] = str_replace('$'.$param, '\'.'.$this->_preparePHPExpr('$'.$param, $updatefields[$propname], false).'.\'',$value[0]);313 $value[0] = str_replace('$'.$param, '\'.'.$this->_preparePHPExpr('$'.$param, $updatefields[$propname],true).'.\'',$value[0]); 314 314 } 315 315 $sqlSet.= ', '.$this->_encloseName($updatefields[$propname]->fieldName). '= '. $value[0]; 316 316 }else{
