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

[Bug]: The package doesnt work with Relation::enforceMorphMap() #23

Closed
misbahansori opened this issue Mar 8, 2024 · 0 comments
Closed
Labels
bug Something isn't working

Comments

@misbahansori
Copy link

What happened?

When I'm using the Relation::enforceMorphMap() method on the AppServiceProvider, the package doesn't work as expected. No result is returned on the activity page.

Relation::enforceMorphMap([
  'user' => User::class,
]);

The query from that page is looks like this:

select * from `activity_log` where `subject_id` = 1 and `subject_type` = 'App\Models\User' order by `created_at` desc

It uses the class name instead of the morph map alias.

How to reproduce the bug

Use the Relation::enforceMorphMap() method on the AppServiceProvider

Package Version

^1.2

PHP Version

8.2.10

Laravel Version

^10.10

Which operating systems does with happen with?

No response

Notes

No response

@misbahansori misbahansori added the bug Something isn't working label Mar 8, 2024
@199ocero 199ocero closed this as not planned Won't fix, can't repro, duplicate, stale Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants