Releases: zenstruck/foundry
v2.6.0
v2.5.5
v2.5.4
v2.5.3
v2.5.2
v2.5.1
v2.5.0
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
v2.4.3
v2.4.2
v2.4.1
6b4fea8 fix(faker): missing parameter when using custom faker
service (#877) by @silasjoisten