Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 1 Rev 152
Línea 107... Línea 107...
107
        
107
        
108
        return $this->executeFetchAllObject($select, $prototype);
108
        return $this->executeFetchAllObject($select, $prototype);
Línea -... Línea 109...
-
 
109
    }
-
 
110
    
-
 
111
    
-
 
112
    /**
-
 
113
     *
-
 
114
     * @param int $company_id
-
 
115
     * @return int
-
 
116
     */
-
 
117
    public function fetchCountByCompanyId($company_id)
-
 
118
    {
-
 
119
   
-
 
120
        
-
 
121
        $select = $this->sql->select(self::_TABLE);
-
 
122
        $select->columns(['total' => new Expression('COUNT(*)')]);
-
 
123
        $select->where->equalTo('company_id', $company_id);
-
 
124
        
-
 
125
        $record = $this->executeFetchOneArray($select);
-
 
126
        
-
 
127
        return $record['total'];
Línea 109... Línea 128...
109
    }
128
    }
110
    
129
    
111
    
130
    
112
 
131