SyncRule: avoid issues with auto-aliased columns

Affects some ZF versions
This commit is contained in:
Thomas Gelf 2015-12-02 15:05:52 +01:00
parent e871c1c534
commit ef4eecae6f
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ class SyncRule extends DbObject
$db->select() $db->select()
->from( ->from(
'sync_property', 'sync_property',
'(CASE WHEN MAX(priority) IS NULL THEN 1 ELSE MAX(priority) + 1 END)' array('priority' => '(CASE WHEN MAX(priority) IS NULL THEN 1 ELSE MAX(priority) + 1 END)')
)->where('rule_id = ?', $this->id) )->where('rule_id = ?', $this->id)
); );
} }