laravel-mongodb
laravel-mongodb copied to clipboard
Unable to fetch relationships withThrashed
Description:
withThrashed doesn't work at all.
Steps to reproduce
- Define an entity relationship like so:
public function something() { return $this->belongsTo(Something::class)->withThrashed(); }
- Call this method
Expected behaviour
The results are returned and they include thrashed objects.
Actual behaviour
An exception is raised:
BadMethodCallException in Builder.php line 2450: Call to undefined method Jenssegers\Mongodb\Query\Builder::withThrashed()