Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this package maintained anymore? #92

Open
bryanbassett opened this issue May 21, 2021 · 6 comments
Open

Is this package maintained anymore? #92

bryanbassett opened this issue May 21, 2021 · 6 comments

Comments

@bryanbassett
Copy link

I am running the latest laravel and I even followed the demo projects examples for some tips. But when I now try to create a new item that belongsTo the user which hasMany of the item(s), I get this error:

BadMethodCallException with message 'Call to undefined method Illuminate\Database\Eloquent\Relations\BelongsTo::getKey()

If this package is no longer maintained I might just have to write the implementation myself instead of using the nice eloquent functionality it seems you all had worked hard to make.

On the other hand it could just be me, and that is also very likely. I have no idea why it won't work. I can create a new "item" if I dont use the ActivityTrait in the model.

@ferhatelmas
Copy link

Yes, it's but this is possible since quite old at the moment. Luckily, revamp is coming soon. I will drop an update here by Monday.

@bryanbassett
Copy link
Author

image

I was able to solve my issue by using these overrides. Overflows? Idk what they are technically called. But yeah. Solved my issue at least. I still think this should not be necessary however. I think the problem was that get_class($instance) was returning BelongsTo:: instead of the actual class name of the model.

@dgillier
Copy link

@ferhatelmas Hello any news about a package update (was supposed to be posted in May) ?
Thanks, Denis

@nezaboravi
Copy link

Yes, it's but this is possible since quite old at the moment. Luckily, revamp is coming soon. I will drop an update here by Monday.

That Monday passed a 5 months ago...

@dgillier
Copy link

Any update ?

@ferhatelmas
Copy link

FYI, there is a new release https://github.com/GetStream/stream-laravel/releases/tag/2.4.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants