Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 2380 Rev 5205
Línea 150... Línea 150...
150
       // echo $select->getSqlString($this->adapter->platform); exit;
150
       // echo $select->getSqlString($this->adapter->platform); exit;
Línea 151... Línea 151...
151
        
151
        
152
        return $this->executeFetchOneObject($select, $prototype);
152
        return $this->executeFetchOneObject($select, $prototype);
Línea -... Línea 153...
-
 
153
    }
-
 
154
    
-
 
155
    /**
-
 
156
     *
-
 
157
     * @param int $company_id
-
 
158
     * @param int $user_id
-
 
159
     * @return CompanyUser
-
 
160
     */
-
 
161
    public function fetchOneAcceptedByCompanyIdAndUserId($company_id, $user_id)
-
 
162
    {
-
 
163
        $prototype = new CompanyUser();
-
 
164
        $select = $this->sql->select(self::_TABLE);
-
 
165
        $select->where->equalTo('company_id', $company_id);
-
 
166
        $select->where->equalTo('user_id', $user_id);
-
 
167
        $select->where->equalTo('status', CompanyUser::STATUS_ACCEPTED);
-
 
168
        
-
 
169
        // echo $select->getSqlString($this->adapter->platform); exit;
-
 
170
        
-
 
171
        return $this->executeFetchOneObject($select, $prototype);
Línea 153... Línea 172...
153
    }
172
    }
154
    
173
    
155
    
174
    
156
    /**
175
    /**