original_string: public static function create_relation($userid, $competencyid, $planid) {
          $relation = new user_competency_plan(0, (object) array('userid' => $userid, 'competencyid' => $competencyid,
                  'planid' => $planid));
          return $relation;
      }
code: public static function create_relation($userid, $competencyid, $planid) {
          $relation = new user_competency_plan(0, (object) array('userid' => $userid, 'competencyid' => $competencyid,
                  'planid' => $planid));
          return $relation;
      }
code_tokens: public static function create_relation ( $ userid , $ competencyid , $ planid ) { $ relation = new user_competency_plan ( 0 , ( object ) array ( 'userid' => $ userid , 'competencyid' => $ competencyid , 'planid' => $ planid ) ) ; return $ relation ; }
docstring: 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
docstring_tokens: Create a new user_competency_plan object .