I've looked here: http://ift.tt/2f0xYpC here: http://ift.tt/2jjKp15 all over the internet, but I haven't been able to properly get this working. I want to order my results just like in the first link:db.Page.findAll({ include: [{ model: db.Gallery include: [{ model: db.Artwork }] }], order: [ [ db.Gallery, 'order', 'DESC' ] ] })That however does not work for me, giving an error along the lines of "unkown column 'gallery.order" in 'order clause'
Submitted September 11, 2017 at 09:56PM by datHTTR
No comments:
Post a Comment