Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 2062 | Rev 2066 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 2062 Rev 2064
Línea 117... Línea 117...
117
        $select->where->equalTo('uuid', $uuid);
117
        $select->where->equalTo('uuid', $uuid);
118
        $select->limit(1);
118
        $select->limit(1);
119
        return $this->executeFetchOneObject($select, $prototype);
119
        return $this->executeFetchOneObject($select, $prototype);
120
    }
120
    }
Línea -... Línea 121...
-
 
121
 
-
 
122
    public function update($form)
-
 
123
    {
-
 
124
        $hydrator = new ObjectPropertyHydrator();
-
 
125
        $values = $hydrator->extract($form);
-
 
126
        $values = $this->removeEmpty($values);
-
 
127
        
-
 
128
        $update = $this->sql->update(self::_TABLE);
-
 
129
        $update->set($values);
-
 
130
        $update->where->equalTo('hptg_id', $form->hptg_id);
-
 
131
        return $this->executeUpdate($update); 
-
 
132
    }
-
 
133
    
Línea 121... Línea 134...
121
 
134
 
122
 
135