Proyectos de Subversion LeadersLinked - Services

Rev

Rev 214 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 214 Rev 314
Línea 251... Línea 251...
251
    {
251
    {
252
        $hydrator = new ObjectPropertyHydrator();
252
        $hydrator = new ObjectPropertyHydrator();
253
        $values = $hydrator->extract($device);
253
        $values = $hydrator->extract($device);
254
        $values = $this->removeEmpty($values);
254
        $values = $this->removeEmpty($values);
Línea -... Línea 255...
-
 
255
        
-
 
256
        $values['user_id'] = empty($values['user_id']) ? null : $values['user_id'];
255
        
257
        
256
        $update = $this->sql->update(self::_TABLE);
258
        $update = $this->sql->update(self::_TABLE);
257
        $update->set($values);
259
        $update->set($values);
Línea 258... Línea 260...
258
        $update->where->equalTo('id', $device->id);
260
        $update->where->equalTo('id', $device->id);