Skip to content

findIn not work with relation #588

@lukaslaskovski

Description

@lukaslaskovski

BookModel relation definition:

author_id: this.number(0),
author: this.belongsTo(AuthorModel, 'author_id'),

author is null when using findIn like:
BookModel.query().with('author').findIn([1, 2])
and works well with whereIdIn:
BookModel.query().with('author').whereIdIn([1, 2]).get()

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingresolvedIssue have been resolved but not yet released

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions