Skip to content

Unable to fetch relationships withThrashed #2423

Closed as not planned
Closed as not planned
@galzetta

Description

@galzetta

Description:

withThrashed doesn't work at all.

Steps to reproduce

  1. Define an entity relationship like so:
    public function something()
        {
            return $this->belongsTo(Something::class)->withThrashed();
        }
    
  2. 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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions