Access properties via static:: instead of self::.

The properties of EntityGenerator are now protected instead of private.
But this does not make sense until they are accessed with static::.
Otherwise the templates cannot be overwritten within a sub class.
Merge pull request #719 from tristanlins/fix/entity-generator-extensibility

Access properties via static:: instead of self::.