Skip to content

v2.5.0

Compare
Choose a tag to compare
@nikophil nikophil released this 13 May 06:29
· 31 commits to 2.x since this release

Main features

30270ec feat: introduce "in-memory" behavior (#590) by @nikophil

Foundry now allows to use "in-memory" repositories in your factories. This is mainly useful for DDD applications or with hexagonal architecture, where repositories in the domain are usually interfaces for which main implementations are a Doctrine one. You can tell Foundry to use the "in-memory" version of these repositories.

See docs


5b027c0 feat: flush once (#873) by @nikophil

Foundry used to call ObjectManager::flush() for every entity (or ODM document) created. This could have a performance downside. Since 2.5, Foundry is able to only call flush() once per call of PersistentObjectFactory::create() in userland.

See docs


Misc changes

7b6f70c feat: enable flush once with config (#885) by @nikophil
87acf7a feat: add generic doctrine-like repository for in-memory (#887) by @nikophil
ae662a3 minor: make "in-memory" classes experimental (#895) by @nikophil
0b09c20 chore: decouple from framework bundle (#882) by @nikophil
a54d97e minor: ignore deprecations related to ProxyHelper::generateLazyProxy() by @nikophil
df4d355 chore: misc DX and testsuite improvements (#881) by @nikophil
a19ce4c tests: add ZenstruckFoundryBundleTest (#878) by @silasjoisten, @nikophil

Full Change List