I am using David Perssons media pluginhttps://github.com/davidpersson/mediain
1.3 environment and I have more of an advanced usage question.
Basically, I have existing model records that rely on a model field (slug)
as part of the path to the image. Since this is a join table, the user can
I figured out the answer to my own question =)
The original order I specified was:
'order' = array('Coupon.id' = 'DESC', 'Restaurant.tier'='ASC',
'Restaurant.name' = 'ASC'),
I changed order to:
'order' = array(Coupon.id != 0 DESC, 'Restaurant.tier ASC',
'Restaurant.name ASC'),
Hope this helps
I have searched high and low for an answer to this question...
I have a 1 to 1 relationship in my database.
A Restaurant has one Coupon
The coupon is optional, so the restaurant without coupons should be
included in the result set, however, when I try to sort by restaurants
that have a coupon