diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-20 11:09:06 +0100 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-03-20 11:09:06 +0100 |
commit | 959f29146e7ebec732c7bf54538221307a08189b (patch) | |
tree | 971710c9e53e1fbac1053f8ae9ded410fe1baca8 /db/entity.php | |
parent | 4c6cdf277a26f4f6eebc65526e0ca1baccbeeb92 (diff) |
use a hashmap for updated fields
Diffstat (limited to 'db/entity.php')
-rw-r--r-- | db/entity.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/entity.php b/db/entity.php index 31a0296cd..165c7a476 100644 --- a/db/entity.php +++ b/db/entity.php @@ -80,7 +80,7 @@ abstract class Entity { * @param string $attribute the name of the attribute */ protected function markFieldUpdated($attribute){ - array_push($this->updatedFields, $attribute); + $this->updatedFields[$attribute] = true; } |