Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw when attempting to lazy-load after no-tracking query #10851

Merged
merged 1 commit into from
Feb 5, 2018

Commits on Feb 5, 2018

  1. Throw when attempting to lazy-load after no-tracking query

    Part of #10042, #10509, #3797
    
    It would be good to make this work in a future release, but this involves running a no-tracking query with fixup where the root entity is already materialized. For now, this will throw so we can make it work later without it being a breaking change.
    
    Lazy-loading behaviors for non-tracked entities:
    * Proxies:
      * No-op if entity was explicitly detached
      * Throw if it was queried as no-tracking
    * Lazy-loading entities with loader service property:
      * No-op if entity was explicitly detached
      * Throw if it was queried as no-tracking
    * Lazy-loading entities without service property:
      * Throw even if entity was explicitly detached, but entity can set loader to null, or a service property can be defined
      * Throw if it was queried as no-tracking
    ajcvickers committed Feb 5, 2018
    Configuration menu
    Copy the full SHA
    4df8e7b View commit details
    Browse the repository at this point in the history