Create virtual properties for Doctrine ORM entities on postLoad and postFlush events.