Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 3639 Rev 4113
Línea 116... Línea 116...
116
     */
116
     */
117
    public function fetchOneByHostnameForFrontend($hostname)
117
    public function fetchOneByHostnameForFrontend($hostname)
118
    {
118
    {
119
        $select = $this->sql->select(self::_TABLE);
119
        $select = $this->sql->select(self::_TABLE);
120
        $select->where->equalTo('main_hostname', $hostname);
120
        $select->where->equalTo('main_hostname', $hostname);
-
 
121
        $select->where->or->equalTo('alternative_hostname', $hostname);
121
        $select->limit(1);
122
        $select->limit(1);
Línea 122... Línea 123...
122
        
123
        
123
        $prototype = new Network();
124
        $prototype = new Network();
124
        return $this->executeFetchOneObject($select, $prototype);
125
        return $this->executeFetchOneObject($select, $prototype);