[RSS Feed/News] Entity relation order doesn't affect when used with defaultWith

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
I'm trying to change order for entity relation that defined in defaultWith and nothing happens.

PHP:

Code:
$structure->relations['CustomStylePurchase'] = [
    'entity' => 'CustomStylePurchase:Purchase',
    'type' => self::TO_ONE,
    'conditions' => [
        ['content_type', '=', $structure->contentType],
        ['content_id', '=', '$' . $structure->primaryKey],
    ],
    'order' => ['purchase_date', 'DESC'],
    'primary' => false
];

$structure->defaultWith +=...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom