staudenmeir / eloquent-has-many-deep

Laravel Eloquent HasManyThrough relationships with unlimited levels

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compatibility with has-many-merged relashionships

Agufi28 opened this issue · comments

Hi, I was wondering if by any chance compatibility could be added with the following library:
https://github.com/korridor/laravel-has-many-merged

I've tried to use it as is but i get an error saying "This relashionship is not supported"

image

Thank you very much!

I'll look into it.

How are you using that package and what does your hasManyDeepFromRelations() relationship look like?

Hi, thank you for your help!
This is the main relationship (CuerpoTecnico):
image

And this is how the relationship within the Subcategoria model:
image

It fails when i try to access the relation "clasesDeHoy" from a CuerpoTecnico collection

Thanks!

What Laravel version are you using?

I'm using laravel 9. Thanks!

I pushed a draft into the has-many-merged branch. You can test it by replacing the version in your composer.json:

"staudenmeir/eloquent-has-many-deep": "dev-has-many-merged"

It works great. Thank you very much!! :D

Great, I released a new version. You can revert the composer.json change and update the package to v1.17.1.