SyncRule: fetch properties in reverse order

This commit is contained in:
Thomas Gelf 2015-12-08 15:01:33 +01:00
parent a88d064b05
commit c6842520d9
1 changed files with 4 additions and 1 deletions

View File

@ -81,7 +81,10 @@ class SyncRule extends DbObject
$db = $this->getDb(); $db = $this->getDb();
return SyncProperty::loadAll( return SyncProperty::loadAll(
$this->getConnection(), $this->getConnection(),
$db->select()->from('sync_property')->where('rule_id = ?', $this->id) $db->select()
->from('sync_property')
->where('rule_id = ?', $this->id)
->order('priority DESC')
); );
return $this->syncProperties; return $this->syncProperties;