Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 1 Rev 4751
Línea 60... Línea 60...
60
       
60
       
61
        
61
        
Línea -... Línea 62...
-
 
62
        return $this->executeFetchAllObject($select, $prototype);
-
 
63
    }
-
 
64
    
-
 
65
    
-
 
66
    /**
-
 
67
     *
-
 
68
     * @param int $user_id
-
 
69
     * @return UserPassword
-
 
70
     */
-
 
71
    public function fetchLastByUserId($user_id)
-
 
72
    {
-
 
73
        
-
 
74
        $prototype = new UserPassword();
-
 
75
        
-
 
76
        $select = $this->sql->select(self::_TABLE);
-
 
77
        $select->where->equalTo('user_id', $user_id);
-
 
78
        $select->order('id DESC');
-
 
79
 
-
 
80
        
-
 
81
        
-
 
82
        
62
        return $this->executeFetchAllObject($select, $prototype);
83
        return $this->executeFetchOneObject($select, $prototype);
63
    }
84
    }
64
    
85
    
65
    /**
86
    /**
66
     * 
87
     *