zhil

Results 49 comments of zhil

@trappar fixed

@trappar what do you think about this PR?

well, main goal of this PR - add easy way for creating test data sample from very large database. It could be either dump of all entity types for first...

Using own fork would be problematic - didnt founded any easy ways to load it in composer with "minimum-stability": "stable" So, I would try to make this PR acceptable :)...

I have located another approach of generating test data. Something like ``` // api endpoint preload needed data $fixturesContext = FixtureGenerationContext::create() ->setMaximumRecursion(0) ; $entities = []; foreach ($this->getDoctrine()->getManager()->getUnitOfWork()->getIdentityMap() as $entityType)...

@trappar what do you think about second approach? Right not its very hard to build "default" fixtures set for large entities count.

@trappar can you please check https://github.com/trappar/AliceGenerator/pull/13/files and let me know if its acceptable?

yes, such fixtures generate "Notice: Array to string conversion" (ContextErrorException) Added screenshot of debugger, not sure how to explain better sample fixture ``` ENTITY: Commentary-1: commentary: 'Welcome to [venue] where...

@trappar any ideas regarding how can it be fixed?

@trappar sorry for annoying, do you have any ideas regarding how can it be fixed? Right now I use dirty patches like ``` public static function patchIssue12($content) { return preg_replace_callback('/^\s*commentary\:\s*\'(.+)\'$/mui',...