Closed alexdanielyan closed 7 years ago
Check #5429, currently was closed down as a no-fix
I am completely disagree. All we need, redefine Illuminate\Database\Eloquent\Relations\HasOneOrMany.php
line 89 getRelationQueryForSelfRelation
in Illuminate\Database\Eloquent\Relations\MorphOneOrMany.php
.
There should be laravel_reserved_
for morp type column. I think it is possible.
@team5ru can you submit a PR with some tests that shows the issue and how to fix?
Not in working time. On weekends.
Closing this then since it was marked as no-fix before, but please submit a PR if you have a fix.
Description:
I have "Comment" Eloquent with morphMany and morphTo "comments". This relation not working for methods "has", "whereHas" and other. For example:
gives query
In the last line should be laravel_reserved_3 instead comments
Steps To Reproduce: