Removed todo
Improved comments
Removed useless assignment of return var
Implemented caching
Renamed var with duplicate name
Updated comments
Updated comments
Moved querying newest entity revision to repository
Moved getting entity manager to database class so it can be used everywhere
Corrected casing
Added getters and setters
Reused newest revision method for save method
Created appears to be a datetime field...
Entities are now save using entitymanager
Corrected annotation
New eid is now retrieved using entitymanager
Fix getNewestRevision should be able to return null to be able to differ between 0 and null
Corrrected comment
Moved getting eid by entityid to repository
Profiling / doctrine test, convert created to a proper datetime field