WORK IN PROGRESS This is pre-pre-pre-alpha code based on code and techniques in https://github.com/l3pp4rd/DoctrineExtensions