Reset mTransient to true after deleting the Entity from database.

Fix [#40]