[BUGFIX] Purge Doctrine proxies that are no longer needed
With this change the proxy target directory is emptied before
Doctrine proxies are (re)built, removing outdated proxy classes.
This solves fatal errors when (proxied) classes are removed, and
thus can no longer be found when referenced from their heirs.
Releases: 1.1, 1.2