You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Database Driver & Version: mysql Ver 14.14 Distrib 5.7.23, for Linux (x86_64)
Description:
The version 5.6.35 broke my code because of this commit c59de77
The function withoutGlobalScopes in the relationship is not working as before.
In the version 5.6.34 it worked.
Steps To Reproduce:
class Post extends Model
{
use SoftDeletes;
publicfunctioncomments()
{
return$this->morphMany(Comment::class, 'commentable');
}
}
class Comment extends Model
{
publicfunctioncommentable()
{
return$this->morphTo()->withoutGlobalScopes();
}
}
$post = factory(Post::class)->create();
$comment = factory(Comment::class)->make();
$post->comments()->save($comment);
$post->delete();
$post = Post::withTrashed()->find($post->id);
// In version 5.6.34 it works, now in version 5.6.35 it just returns null$post->comments()->first()->commentable;
The text was updated successfully, but these errors were encountered:
Description:
The version 5.6.35 broke my code because of this commit c59de77
The function
withoutGlobalScopes
in the relationship is not working as before.In the version 5.6.34 it worked.
Steps To Reproduce:
The text was updated successfully, but these errors were encountered: