Jan Aagaard Meier
Jan Aagaard Meier
`authorId` is a regular attribute on the model, you can insert it just like anything else
I would be interested in implementing this feature, but I would like a pointer or two before getting started. I'm thinking it would make sense to add the check for...
Yeah, seems we need an order in the subquery ``` sql SELECT `a`.*, `bs`.`id` AS `bs.id`, `bs`.`aId` AS `bs.aId` FROM (SELECT `a`.`id` FROM `as` AS `a` LIMIT 10, 10) AS...
How does findAll work - I'd think it has the same problem of limiting first, and then applying order on that? Do you mean you remove the limit completely, load...
Actually, I'm not sure how you would write a query for this - You need the join in order to do the order - but if you add the join,...
@beeant I'm not entirely sure what you want to do honestly. Do you want to order the A rows by B.order? In that case, what happens when A is associated...
It probably works because we take the first A row we see in the result set (sorted according to the first B row that it was joined with) and merge...
Ping @typescript-bot