Skip to content

Unable to fetch toOne attributes when using filterManyRaw for filtering #3709

@cchjgood

Description

@cchjgood

With this query, the items.material object is null/empty.

SaleOrderEntity saleOrder=dao.find(SaleOrderEntity.class)
.fetch("items")
.fetch("items.material")
.fetch("items.orderBExc")
.where()
.idEq(event.getData().getPrimaryKey())
.eq("dr","N")
.eq("cstatus", EBillStatus.APPROVE)
.filterManyRaw("items","orderBExc.num-orderBExc.sendnum-orderBExc.outstocknum>0")
.findOne();

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions