Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 4911 Rev 5050
Línea 73... Línea 73...
73
        
73
        
74
        $prototype = new Country();
74
        $prototype = new Country();
75
        return $this->executeFetchOneObject($select, $prototype);
75
        return $this->executeFetchOneObject($select, $prototype);
Línea -... Línea 76...
-
 
76
    }
-
 
77
    
-
 
78
    /**
-
 
79
     *
-
 
80
     * @param String $search
-
 
81
     * @return Country
-
 
82
     */
-
 
83
    public function fetchOneByCodeOrCountry($search)
-
 
84
    {
-
 
85
        
-
 
86
        $select = $this->sql->select(self::_TABLE);
-
 
87
        $select->where->equalTo('country', $search)->or->equalTo('code', $search);
-
 
88
        
-
 
89
        $prototype = new Country();
-
 
90
        return $this->executeFetchOneObject($select, $prototype);
Línea 76... Línea 91...
76
    }
91
    }
77
    
92
    
78
    
93
    
79
    /**
94
    /**