Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev 628 Rev 632
Línea 297... Línea 297...
297
        $select->where->equalTo('topic_id', $topic_id);
297
        $select->where->equalTo('topic_id', $topic_id);
Línea 298... Línea 298...
298
 
298
 
299
        return $this->executeFetchOneObject($select, $prototype);
299
        return $this->executeFetchOneObject($select, $prototype);
Línea -... Línea 300...
-
 
300
    }
-
 
301
 
-
 
302
     /**
-
 
303
     * Fetch one topic-user relationship for a given user ID and company ID.
-
 
304
     * 
-
 
305
     * @param int $user_id
-
 
306
     * @param int $company_id
-
 
307
     * @return int
300
    }
308
     */
-
 
309
    public function fetchOneByUserIdAndCompanyId($user_id, $company_id)
-
 
310
    {
-
 
311
        $prototype = new MicrolearningTopicUser();
-
 
312
        $select = $this->sql->select();
-
 
313
        $select->from(self::_TABLE);
-
 
314
        $select->where->equalTo('user_id', $user_id);
-
 
315
        $select->where->equalTo('company_id', $company_id);
Línea 301... Línea 316...
301
 
316
        return $this->executeFetchOneObject($select, $prototype);
302
    
317
    }
303
    
318