Skip to content

Ability to replace or disable default scope on load #69

Description

@roxblnfk

#51

$select->load('comments', ['load' => new PublicCmments()])

Now it works so that the new Scope (Constraint) is added to a default global Scope.

It would be very cool to be able to replace or disable a default Scope

Activity

  1. wolfy-j commented on Feb 12, 2020

    @wolfy-j
    Contributor

    See other tickets as well, we are going to use new parameter "scope" to replace currently active scope/constrain.

  2. moved this to Backlog in Cycleon Jan 10, 2022
  3. moved this from Backlog to Discuss in Cycleon Jan 10, 2022
  4. moved this from Discuss to Backlog in Cycleon Sep 7, 2023
  5. roxblnfk commented on Oct 4, 2026

    @roxblnfk
    MemberAuthor

    Implemented in v2.0.0 (#200): the scope option of load() / with() now replaces the default scope instead of adding to it — ->load('comments', ['scope' => new PublicComments()]), and ['scope' => false] disables it. Keeping the override when Select is cloned was fixed in v2.17.0 (#569).

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions