laravel-custom-relation icon indicating copy to clipboard operation
laravel-custom-relation copied to clipboard

Call to undefined method getKeys()

Open mahdinickdel opened this issue 4 years ago • 4 comments

it got this error

Call to undefined method LaravelCustomRelation\Relations\Custom::getKeys()

mahdinickdel avatar Mar 18 '20 14:03 mahdinickdel

Can't do much with this. Can you post the code for the relationship you defined?

johnnyfreeman avatar Mar 18 '20 15:03 johnnyfreeman

on laravel 5.7 as described in readme of your package i got this error, exactly the same as docs

mahdinickdel avatar Mar 23 '20 19:03 mahdinickdel

getting the same error, getKeys is protected in Illuminate Relation so, it can't access that on Laravel 5.8 atleast.

crissi avatar May 29 '20 11:05 crissi

My apologies, I'm swamped currently and can not devote time to this. I'll happily accept a pull request with the fix.

johnnyfreeman avatar May 29 '20 22:05 johnnyfreeman