Using integer (more specfic type).
Test for forced update of object.
Using getAttribute everywhere.
Documentation of model methods and small refactoring.