Skip to content

MorphMany Relation error - Call to undefined method Builder::compileWhereInRaw() #1947

Closed
@graphicmist

Description

@graphicmist

Hi,

I am using latest version of jenssegers / laravel-mongodb and laravel 5.8.
I am using morphMany Relation which is causing the following error:

 BadMethodCallException
Call to undefined method Jenssegers\Mongodb\Query\Builder::compileWhereInRaw()

My Relation:

    public function logs(): MorphMany
    {
        return $this->morphMany(Log::class, 'subject');
    }

All logs are inserted in mongodb, whereas rest of tables are in mysql database.
Log Class extends Jenssegers\Mongodb\Eloquent\Model
Fetching logs basis subject is causing this error.
Any ideas?

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