Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 6328 Rev 6329
Línea 109... Línea 109...
109
     * @param int $id
109
     * @param int $id
110
     * @return User
110
     * @return User
111
     */
111
     */
112
    public function fetchOne($id)
112
    public function fetchOne($id)
113
    {
113
    {
114
 
-
 
115
        $prototype = new User();
114
        $prototype = new User();
116
        $select = $this->sql->select(self::_TABLE);
115
        $select = $this->sql->select(self::_TABLE);
117
        $select->where->equalTo('id', $id);
116
        $select->where->equalTo('id', $id);
118
        var_dump([$select, $prototype]);
-
 
119
        die();
117
 
120
        return $this->executeFetchOneObject($select, $prototype);
118
        return $this->executeFetchOneObject($select, $prototype);
121
    }
119
    }
Línea 122... Línea 120...
122
 
120
 
123
    public function fetchOneRelation($id)
121
    public function fetchOneRelation($id)