Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 3454 Rev 4911
Línea 151... Línea 151...
151
     */
151
     */
152
    public function insert($currency)
152
    public function insert($currency)
153
    {
153
    {
154
        $hydrator = new ObjectPropertyHydrator();
154
        $hydrator = new ObjectPropertyHydrator();
155
        $values = $hydrator->extract($currency);
155
        $values = $hydrator->extract($currency);
-
 
156
        $values = $this->removeEmpty($values);
Línea 156... Línea 157...
156
        
157
        
157
        $insert = $this->sql->insert(self::_TABLE);
158
        $insert = $this->sql->insert(self::_TABLE);
Línea 169... Línea 170...
169
     */
170
     */
170
    public function update($currency) 
171
    public function update($currency) 
171
    {
172
    {
172
        $hydrator = new ObjectPropertyHydrator();
173
        $hydrator = new ObjectPropertyHydrator();
173
        $values = $hydrator->extract($currency);
174
        $values = $hydrator->extract($currency);
-
 
175
        $values = $this->removeEmpty($values);
Línea 174... Línea 176...
174
        
176
        
175
        $update = $this->sql->update(self::_TABLE);
177
        $update = $this->sql->update(self::_TABLE);
176
        $update->set($values);
178
        $update->set($values);