Skip to content

autoFetch does not work with extendsTo relations #323

Description

@ptnplanet

Is this an intended behavior? It seems to me, that extendsTo relations ignore the autoFetch option. Regardless if the option is defined on the extension or the query itself.

Here is an example, that does not work as expected.

var User = db.define('user', { /* ... */ });
var Account = User.extendsTo('account', { /* ... */ }, { autoFetch: true });

User.find({ /* */ }, { autoFetch: true }, /* ... */);

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions