Per #14 this gives backwards compatibility to PHP 5.3.
Two commits here, the second one I need your eye for. PHP 5.3 does not support ReflectionInstance::newInstanceWithoutConstructor. 5.3 unit tests pass with my change but I don't know all the consequences of this change. Could we do the same thing with https://github.com/Ocramius/Instantiator ?
I would definitly go for doctrine/instantiator instead of using newInstance. Entities can have constructor parameters, so this code will fail on entities with constructor parameters.
Per #14 this gives backwards compatibility to PHP 5.3.
Two commits here, the second one I need your eye for. PHP 5.3 does not support ReflectionInstance::newInstanceWithoutConstructor. 5.3 unit tests pass with my change but I don't know all the consequences of this change. Could we do the same thing with https://github.com/Ocramius/Instantiator ?