public static function create_relation($userid, $competencyid, $courseid) {
        $data = new \stdClass();
        $data->userid = $userid;
        $data->competencyid = $competencyid;
        $data->courseid = $courseid;

        $relation = new user_competency_course(0, $data);
        return $relation;
    }
public static function create_relation($userid, $competencyid, $courseid) {
        $data = new \stdClass();
        $data->userid = $userid;
        $data->competencyid = $competencyid;
        $data->courseid = $courseid;

        $relation = new user_competency_course(0, $data);
        return $relation;
    }
public static function create_relation ( $ userid , $ competencyid , $ courseid ) { $ data = new \ stdClass ( ) ; $ data -> userid = $ userid ; $ data -> competencyid = $ competencyid ; $ data -> courseid = $ courseid ; $ relation = new user_competency_course ( 0 , $ data ) ; return $ relation ; }
Create a new user_competency_course object.

Note, this is intended to be used to create a blank relation, for instance when
the record was not found in the database. This does not save the model.

@param  int $userid The user ID.
@param  int $competencyid The competency ID.
@param  int $courseid The course ID.
@return \core_competency\user_competency_course
Create a new user_competency_course object .