Added AbstractEntity with __setProperty method, to allow readonly properties in API entities