public static function create_relation($userid, $competencyid, $planid) {
        $relation = new user_competency_plan(0, (object) array('userid' => $userid, 'competencyid' => $competencyid,
                'planid' => $planid));
        return $relation;
    }
public static function create_relation($userid, $competencyid, $planid) {
        $relation = new user_competency_plan(0, (object) array('userid' => $userid, 'competencyid' => $competencyid,
                'planid' => $planid));
        return $relation;
    }
public static function create_relation ( $ userid , $ competencyid , $ planid ) { $ relation = new user_competency_plan ( 0 , ( object ) array ( 'userid' => $ userid , 'competencyid' => $ competencyid , 'planid' => $ planid ) ) ; return $ relation ; }
Create a new user_competency_plan 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 $planid The plan ID.
@return \core_competency\user_competency_plan
Create a new user_competency_plan object .