Example #1
0
 function getBranche()
 {
     $t = new Branches();
     $s = $t->select()->distinct()->from('branche')->join('unite_type', 'unite_type.branche = branche.id', array())->where('unite_type.id = ?', $this->type);
     return $t->fetchOne($s);
 }