ORMExecutor internally calls $this->purger->purge(); independently of fixtures passed
ORMPurger::purge do a lot of manipulations (use metadata, getSchemaAssetsFilter, getFilterSchemaAssetsExpression, etc), and finally run sql statements.
I think it is possible to prevent extra manipulations in ORMPurger and cache, reuse sql statements. What do you think? What type of cache we can use (static variable, for example)?
I use ORMPurger on every test in
setUp
method:$this->getFixtureExecutor()->execute($this->getFixtureLoader()->getFixtures());
.$this->purger->purge();
independently of fixtures passedI think it is possible to prevent extra manipulations in ORMPurger and cache, reuse sql statements. What do you think? What type of cache we can use (static variable, for example)?