Skip to content

Laravel 5.3 Relations #936

Closed
Closed
@byteground

Description

@byteground

Hi,
After upgrading to Laravel 5.3, querying relations are throwing an error.

FatalErrorException in Builder.php line 613:
Call to a member function all() on array

I am using HybridRelations trait, and trying to query a Moloquent model from an Eloquent Model

$user->store()->first();

Here $user is an Eloquent Model and has a store(Moloquent). While querying this relation, I am getting this error.

Please look into this.

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