Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 3099 Rev 4131
Línea 91... Línea 91...
91
        return $this->executeFetchOneObject($select, $prototype);
91
        return $this->executeFetchOneObject($select, $prototype);
92
    }
92
    }
Línea 93... Línea 93...
93
    
93
    
-
 
94
    
-
 
95
    /**
-
 
96
     *
-
 
97
     * @param int $user_id
-
 
98
 
-
 
99
     * @return ChatUser[]
-
 
100
     */
-
 
101
    public function fetchAllByUserId($user_id)
-
 
102
    {
-
 
103
        $select = $this->sql->select(self::_TABLE);
-
 
104
        $select->where->equalTo('user_id1', $user_id)->or->equalTo('user_id2', $user_id);
-
 
105
        
-
 
106
        //echo $select->getSqlString($this->adapter->platform); exit;
-
 
107
        
-
 
108
        $prototype = new ChatUser();
-
 
109
        return $this->executeFetchAllObject($select, $prototype);
-
 
110
    }
-
 
111
    
94
    
112
    
95
    /**
113
    /**
96
     * 
114
     * 
97
     * @param ChatUser $chatUser
115
     * @param ChatUser $chatUser
98
     * @return boolean
116
     * @return boolean