marcoarment/FCModel — pull request #5 by dhennessy (2013-09-19 22:37:19+00:00)
Title: Remove deleted entities from global instance cache

This is a fix for issue #3

When an entity is deleted from the database, it is also deleted from the global instance cache. This means that a new attempt to create an entity with the same primary key will succeed and return a different instance. Dangling pointer to the old instance will continue to be unable to save with that instance.