Closed julienvincent closed 8 years ago
Using multiple root models of the same type in a query, like this:
query( book(), book() )
or
query( user( book() ), book( user().as("author") ) )
Will cause entities with conflicting ids to be generated. This is as the mocking cache is not scoped at a query level, but at a root model level.
id
The cache needs to be scoped to the query.
Using multiple root models of the same type in a query, like this:
or
Will cause entities with conflicting
id
s to be generated. This is as the mocking cache is not scoped at a query level, but at a root model level.The cache needs to be scoped to the query.