clear entity cache on rollback

updated entities where persisting in the cache after a rollback so that
incorrect results are returned from queries
Merge pull request #13 from mikehancock/delete-relationship

clear entity cache on rollback