You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR changed how the correct method call is determined by checking if the method name is_callable() or not. However, in our testing with a BelongsTo relationship in Laravel 5.5 is_callable() is returning true no matter what method name you pass and so picks the wrong method to call resulting in an error.
We have rolled back to 4.1.1 in the meantime where the old version check logic is in place.
The text was updated successfully, but these errors were encountered:
I encountered same problem with Eloquent 5.7.17 when updated my fork.
Update: I changed is_callable([$relatedRelation, 'getQualifiedForeignKeyName']) to method_exists($relatedRelation, 'getQualifiedForeignKeyName') (same with 'getOwnerKeyName') and it seems to start working
#104
This PR changed how the correct method call is determined by checking if the method name is_callable() or not. However, in our testing with a BelongsTo relationship in Laravel 5.5 is_callable() is returning true no matter what method name you pass and so picks the wrong method to call resulting in an error.
We have rolled back to 4.1.1 in the meantime where the old version check logic is in place.
The text was updated successfully, but these errors were encountered: