File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public function testMysqlRelations()
4545 $ user = MysqlUser::find ($ user ->id ); // refetch
4646 $ this ->assertEquals ('admin ' , $ user ->role ->type );
4747
48- // MongoDB beelongs to
48+ // MongoDB belongs to
4949 $ role = $ user ->role ()->first (); // refetch
5050 $ this ->assertEquals ('John Doe ' , $ role ->mysqlUser ->name );
5151
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public function user()
1616
1717 public function mysqlUser ()
1818 {
19- return $ this ->belongsTo ('MysqlUser ' , ' role_id ' );
19+ return $ this ->belongsTo ('MysqlUser ' );
2020 }
2121
2222 /**
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public function books()
1616
1717 public function role ()
1818 {
19- return $ this ->hasOne ('Role ' , ' role_id ' );
19+ return $ this ->hasOne ('Role ' );
2020 }
2121
2222 /**
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public function user()
1414
1515 public function mysqlUser ()
1616 {
17- return $ this ->belongsTo ('MysqlUser ' , ' role_id ' );
17+ return $ this ->belongsTo ('MysqlUser ' );
1818 }
1919
2020}
You can’t perform that action at this time.
0 commit comments