Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 1 Rev 119
Línea 140... Línea 140...
140
        
140
        
141
        return $paginator;
141
        return $paginator;
Línea 142... Línea 142...
142
    }
142
    }
-
 
143
    
-
 
144
    /**
-
 
145
     *
-
 
146
     * @param int[] $ids
-
 
147
     * @param int $network_id
-
 
148
     * @return Company[]
-
 
149
     */
-
 
150
    public function fetchAllByIdsAndNetworkId($ids, $network_id)
-
 
151
    {
-
 
152
        $ids = empty($ids) ? [0] : $ids;
-
 
153
        
-
 
154
        $prototype = new Company();
-
 
155
        $select = $this->sql->select(self::_TABLE);
-
 
156
        $select->where->in('id', $ids);
-
 
157
        $select->where->equalTo('network_id', $network_id);
-
 
158
        $select->order('name');
-
 
159
        
-
 
160
        return $this->executeFetchAllObject($select, $prototype);
-
 
161
    }
143
    
162
    
144
    /**
163
    /**
145
     * 
164
     * 
146
     * @param int $id
165
     * @param int $id
147
     * @return Company
166
     * @return Company
Línea 152... Línea 171...
152
        $select = $this->sql->select(self::_TABLE);
171
        $select = $this->sql->select(self::_TABLE);
153
        $select->where->equalTo('id', $id);
172
        $select->where->equalTo('id', $id);
Línea 154... Línea 173...
154
        
173
        
155
        return $this->executeFetchOneObject($select, $prototype);
174
        return $this->executeFetchOneObject($select, $prototype);
156
    }
175
    }
Línea 157... Línea 176...
157
    
176
 
158
    
177
    
159
    /**
178
    /**
160
     *
179
     *