public static function assignTarget($from_user_id, $to_user_id) { $target = new Target(); $target->setFromUserId($from_user_id); $target->setToUserId($to_user_id); $target->save(); }