Hi,
Actually the Factory class has only one constructor taking an EntityManagerProvider.
That makes it impossible to use the factories in the SampleDataProviders since there we only have an EntityManager. Could it be possible to add another constructor taking an EntityManager ?
This constructor could be accessible only when the #FAKE conditional variable is set to avoid unauthorize use in the "real" application.