Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

Rev 2093 Rev 2380
Línea 58... Línea 58...
58
        $select = $this->sql->select(self::_TABLE);
58
        $select = $this->sql->select(self::_TABLE);
59
        $select->where->equalTo('company_id', $company_id);
59
        $select->where->equalTo('company_id', $company_id);
Línea 60... Línea 60...
60
        
60
        
61
        return $this->executeFetchAllObject($select, $prototype);
61
        return $this->executeFetchAllObject($select, $prototype);
-
 
62
    }
-
 
63
        
-
 
64
    /**
-
 
65
     * 
-
 
66
     * @param int $company_id
-
 
67
     * @return CompanyUser[]
-
 
68
     */
-
 
69
    public function fetchAllByCompanyIdAndNotUserId($company_id,$user_id)
-
 
70
    {
-
 
71
        $prototype = new CompanyUser();
-
 
72
        $select = $this->sql->select(self::_TABLE);
-
 
73
        $select->where->equalTo('company_id', $company_id);
-
 
74
        $select->where->notEqualTo('user_id', $user_id);  
-
 
75
        $select->where->equalTo('owner', CompanyUser::OWNER_NO);     
-
 
76
        return $this->executeFetchAllObject($select, $prototype);
Línea 62... Línea 77...
62
    }
77
    }
63
    
78
    
64
    /**
79
    /**
65
     *
80
     *