Closed linzhengen closed 7 years ago
We don't accept PR's on release branches, only on the latest develop branch.
And the ORM is not a query builder. This behaviour is by design, if you select objects with relation, it will apply the limit on the parent, but it always fetch all children, otherwise the resultset is not consistent. The ORM will never select partial relation data.
If you want your behaviour, you need to use 'rows_limit' instead of 'limit'. This behaviour is documented.
Thank you for your comment.
doesn’t work by these case
PHP logic
generated the same SQL The
t0
subquery doesn’t work, because it don't have any where condition forlimit 1
But it works by these case