@@ -136,7 +136,7 @@ function createTable ($name, $data) {
136136 exit ;
137137}
138138
139- $ depts = product::join ('user ' )->orderBy ('t_products .id ' , 'desc ' )->get (5 );
139+ $ depts = product::join ('user ' )->orderBy ('`products` .id ' , 'desc ' )->get (5 );
140140foreach ($ depts as $ d ) {
141141 if (!is_object ($ d )) {
142142 echo "Return should be an object \n" ;
@@ -246,21 +246,21 @@ function createTable ($name, $data) {
246246if (!is_array (user::ArrayBuilder ()->byId (1 )))
247247 echo "wrong return type2 " ;
248248
249- if (!is_array (product::join ('user ' )->orderBy ('t_products .id ' , 'desc ' )->get (2 )))
249+ if (!is_array (product::join ('user ' )->orderBy ('`products` .id ' , 'desc ' )->get (2 )))
250250 echo "wrong return type2 " ;
251251
252- if (!is_array (product::orderBy ('t_products .id ' , 'desc ' )->join ('user ' )->get (2 )))
252+ if (!is_array (product::orderBy ('`products` .id ' , 'desc ' )->join ('user ' )->get (2 )))
253253 echo "wrong return type2 " ;
254254
255255$ u = new user ;
256256if (!$ u ->byId (1 ) instanceof user)
257257 echo "wrong return type2 " ;
258258
259259$ p = new product ;
260- if (!is_array ($ p ->join ('user ' )->orderBy ('t_products .id ' , 'desc ' )->get (2 )))
260+ if (!is_array ($ p ->join ('user ' )->orderBy ('`products` .id ' , 'desc ' )->get (2 )))
261261 echo "wrong return type2 " ;
262262
263- if (!is_array ($ p ->orderBy ('t_products .id ' , 'desc ' )->join ('user ' )->get (2 )))
263+ if (!is_array ($ p ->orderBy ('`products` .id ' , 'desc ' )->join ('user ' )->get (2 )))
264264 echo "wrong return type2 " ;
265265
266266echo "All done " ;
0 commit comments