“Invalid PathExpression. Must be a StateFieldPathExpression” in query builder with non related entities

前端 未结 2 1507
感情败类
感情败类 2020-12-06 00:38

I have four entities: OfficialDocument, Media, NMediaStatus and NMediaType. I\'m trying to translate this SQL:

         


        
2条回答
  •  鱼传尺愫
    2020-12-06 01:09

    Simply you can use () where composite keys exist.

    $qb->select('(od.media)', '(od.type) AS doc_type', '(od.status) AS doc_status', 'md.url', 'nms.name', 'nmt.name');
    

提交回复
热议问题