doctrine/doctrine2 — pull request #253 by mrmkrs (2012-01-10 13:27:47+00:00)
Title: enable set visibilty of class fields in EntityGenerator

This commit makes it possible to set the field visibility to private or protected of the generated entities (generated with EntityGenerator).
For example: One can then generate a "DefaultUser" class with protected fields, and subclass it. (Class User extends DefaultUser). That way you can regenerate the entities with Doctrine over and over again without interfering with additional developer code.

Also, some project codingstandards say "protected over private" so all entities should have protected fields so they can always be extended.

See: groups.google.com/group/doctrine-user/browse_thread/thread/77609f754ddea7de/051cfdbdf2cfaa03