@@ -193,8 +193,8 @@ protected function makeSureColumnHasEntity($column)
193193 // if the first part of the string exists as method in the model
194194 if (method_exists ($ this ->model , $ possibleMethodName )) {
195195
196- // check model method for possibility of beeing a relationship
197- $ column ['entity ' ] = $ this ->checkMethodPropertiesForRelationship ($ this ->model , $ possibleMethodName ) ? $ column ['name ' ] : false ;
196+ // check model method for possibility of being a relationship
197+ $ column ['entity ' ] = $ this ->modelMethodIsRelationship ($ this ->model , $ possibleMethodName ) ? $ column ['name ' ] : false ;
198198
199199 if ($ column ['entity ' ]) {
200200 $ parts = explode ('. ' , $ column ['entity ' ]);
@@ -226,8 +226,8 @@ protected function makeSureColumnHasEntity($column)
226226 // if there's a method on the model with this name
227227 if (method_exists ($ this ->model , $ column ['name ' ])) {
228228
229- // check model method for possibility of beeing a relationship
230- $ column ['entity ' ] = $ this ->checkMethodPropertiesForRelationship ($ this ->model , $ column ['name ' ]);
229+ // check model method for possibility of being a relationship
230+ $ column ['entity ' ] = $ this ->modelMethodIsRelationship ($ this ->model , $ column ['name ' ]);
231231
232232 return $ column ;
233233 }
@@ -238,8 +238,8 @@ protected function makeSureColumnHasEntity($column)
238238 $ possibleMethodName = Str::replaceLast ('_id ' , '' , $ column ['name ' ]);
239239
240240 if (method_exists ($ this ->model , $ possibleMethodName )) {
241- // check model method for possibility of beeing a relationship
242- $ column ['entity ' ] = $ this ->checkMethodPropertiesForRelationship ($ this ->model , $ possibleMethodName );
241+ // check model method for possibility of being a relationship
242+ $ column ['entity ' ] = $ this ->modelMethodIsRelationship ($ this ->model , $ possibleMethodName );
243243
244244 return $ column ;
245245 }
0 commit comments