Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 1845 Rev 1846
Línea 116... Línea 116...
116
    /**
116
    /**
117
     * 
117
     * 
118
     * @param TopicForm $form
118
     * @param TopicForm $form
119
     * @return boolean
119
     * @return boolean
120
     */
120
     */
-
 
121
 
121
    public function insert($form)
122
    public function insert($datos)
122
    {
123
    {
123
        $hydrator = new ObjectPropertyHydrator();
124
        $hydrator = new ObjectPropertyHydrator();
124
        $values = $hydrator->extract($form);
125
        $values = $hydrator->extract($datos);
125
        $values = $this->removeEmpty($values);
126
        $values = $this->removeEmpty($values);
126
        
-
 
127
        $insert = $this->sql->insert(self::_TABLE);
127
        $insert = $this->sql->insert(self::_TABLE);
128
        $insert->values($values);
128
        $insert->values($values);
Línea 129... Línea -...
129
        
-
 
130
        //echo $insert->getSqlString($this->adapter->platform); exit;
129
        
131
 
130
        
132
        $result = $this->executeInsert($insert);
131
        $result = $this->executeInsert($insert);
133
        if($result) {
132
        if($result) {
134
            $form->id = $this->lastInsertId;
133
            $datos->id = $this->lastInsertId;
-
 
134
        }
135
        }
135
        
-
 
136
        return $result;
136
        return $result;
137
        
Línea 137... Línea 138...
137
    }
138
    } 
138
    
139
    
139
    /**
140
    /**
140
     *
141
     *