Do we have it? if so whats the syntax.
Additionally, i am creating my model's associations with column in the lookup table
eg.
db.Product.hasMany("additionalmedia", db.MediaItem, { order: Number }, {
reverse : "additionalproducts"
});
I'd like to be able to sort by order.
Both
product.getAdditionalmedia('order', function (err, additionalImages) {
and
product.getAdditionalmedia({}, 'order', function (err, additionalImages) {
don't seem to have any effect.
Thanks :)
Do we have it? if so whats the syntax.
Additionally, i am creating my model's associations with column in the lookup table
eg.
I'd like to be able to sort by order.
Both
and
don't seem to have any effect.
Thanks :)