Skip to content

Commit

Permalink
GetByID found bool
Browse files Browse the repository at this point in the history
  • Loading branch information
latolukasz committed Jan 10, 2024
1 parent 50f8d7b commit f314657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entity_schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ func (e *entitySchema) DeleteEntity(orm ORM, source any) {

func (e *entitySchema) search(orm ORM, where Where, pager *Pager, withCount bool) (results EntityAnonymousIterator, totalRows int) {
schema := orm.Engine().Registry().EntitySchema(e.t).(*entitySchema)
entities := reflect.New(reflect.SliceOf(e.t))
entities := reflect.New(reflect.SliceOf(reflect.PtrTo(e.t))).Elem()
if schema.hasLocalCache {
ids, total := searchIDs(orm, schema, where, pager, withCount)
if total == 0 {
Expand Down

0 comments on commit f314657

Please sign in to comment.