Skip to content

Undefined Model Event Lifecycle - retrieved  #1529

Open
@hzburki

Description

@hzburki

I try to access the retrieved event hook on a model but it throws the following exception;

BadMethodCallException
Call to undefined method Jenssegers\Mongodb\Query\Builder::retrieved()
in Builder.php (line 2445)

Model Event Hook
Email::retrieved(function($email){ \Log::info($email->subject); });

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs investigationNeed investigation about bugs described in issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions