Skip to content

Model events why is there no beforeFind? #1527

Closed
@bangbangda

Description

@bangbangda

I want to add a where condition before all finds(find findAll first).
for example,
$where = ['company_id' => session->get('company_id')];
default search for company data.

beforeFind event is ok?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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