fix $isNew to be aware of $idAttribute