1
0
mirror of synced 2024-12-13 22:56:04 +03:00

[DDC-551] Keep filter parameters and enabled filters sorted for hashing

This commit is contained in:
Alexander 2011-07-22 14:20:36 +02:00
parent 277fc751b6
commit d1908f7207
2 changed files with 6 additions and 0 deletions

View File

@ -763,6 +763,9 @@ class EntityManager implements ObjectManager
if(!isset($this->enabledFilters[$name])) {
$this->enabledFilters[$name] = new $filterClass($this->conn);
// Keep the enabled filters sorted for the hash
ksort($this->enabledFilters);
}
return $this->enabledFilters[$name];

View File

@ -47,6 +47,9 @@ abstract class SQLFilter
// @todo: check for a valid type?
$this->parameters[$name] = array('value' => $value, 'type' => $type);
// Keep the parameters sorted for the hash
ksort($this->parameters);
return $this;
}