Example #1
0
 public static function addPal($userId, $palId, $type)
 {
     $userPals = new UserPals();
     $userPals->user_id = $userId;
     $userPals->pal_id = $palId;
     $userPals->type = $type;
     return $userPals->save();
 }