Right now EntityObject::equals( entity ) will return true if one entity has an ID set and the other entity's ID is null. If both entities have an ID set but it is different then false will be returned. This seems kind of strange.
A better solution could be to add a function comparing the content of two entities only, ignoring the ID entirely, e.g. EntityObject::same( entity ).
Version: unspecified
Severity: normal