Comments (5)
Hi @ahoiromanm
Does the issue go away if you add this comment to vendor/staudenmeir/eloquent-has-many-deep/src/HasOneDeep.php
?
/**
* @template TRelatedModel of \Illuminate\Database\Eloquent\Model
* @extends \Illuminate\Database\Eloquent\Relations\HasOneThrough<TRelatedModel>
*/
class HasOneDeep extends HasManyDeep
{
from eloquent-has-many-deep.
Hi Jonas,
unfortunately it is not solving the problem. The error is exactly the same.
from eloquent-has-many-deep.
Could be a caching issue, it works for me. Please run vendor/bin/phpstan clear-result-cache
and try again.
from eloquent-has-many-deep.
You are right. After clearing the cache it works with the changes you described.
from eloquent-has-many-deep.
Great. I've released a new version with the comment.
from eloquent-has-many-deep.
Related Issues (20)
- Relations not shown in artisan command model:show HOT 3
- Ambigious column reference 'id' HOT 1
- I can't get to conclude this relationship HOT 1
- HasOneTrhough MorphOne HOT 1
- issue with composite keys when doing a relation between 2 tables HOT 2
- Dynamic relationship property returning empty collection HOT 4
- collision with compoships HOT 1
- need help with hasManyDeep with belongsTo HOT 2
- distinct - paginate HOT 1
- Public Page -> belongsTo CompanyBranch -> morphMany Addresses HOT 1
- HasManyDeep Relation Issue HOT 2
- relations eager loading HOT 2
- I'm getting the results for all users - help please HOT 3
- Pivots not returned the same way HOT 3
- Laravel 11 HOT 4
- CompositeKey not included when installed. HOT 3
- Select without laravel_through_key doesnt return query result with PHP while query direct on db does HOT 8
- Alias to pivot table HOT 1
- Alias error Self Relations hasManyDepp HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eloquent-has-many-deep.