Skip to content

Releases: zenstruck/foundry

v2.6.0

05 Jun 08:34
Compare
Choose a tag to compare

7e434ff feat: minor improvements to foundry:load-stories (#930) by @nikophil
bd50a86 merge 2.5.x into 2.x (#931) by @nikophil
159d700 doc: adjust flow (#923) by @kbond
ca95279 feat: Introduce #[AsFixture] attribute and foundry:load-fixture command (#903) by @nikophil

Full Change List

v2.5.5

04 Jun 12:44
Compare
Choose a tag to compare

8238e0f fix: remove useless Configuration::boted() check (#929) by @nikophil

Full Change List

v2.5.4

31 May 08:50
Compare
Choose a tag to compare

8e202b4 fix: TypeError FactoryCollection::create() when calling many with 0 (#925) by @jdecool

Full Change List

v2.5.3

30 May 09:30
Compare
Choose a tag to compare

01c5ce3 fix: should not use flush_after() in FactoryCollection::create() (#908) by @nikophil
7545b2f docs: Fix LazyValue namespace (#919) by @odolbeau
ccc309b docs: fix quote (#918) by @nikophil
f0ae498 docs: Fix save() -> _save() in documentation (#917) by @smnandre

Full Change List

v2.5.2

26 May 11:56
Compare
Choose a tag to compare

40ce8a2 fix: reuse should work with all kind of relationships (#915) by @nikophil
f6c81a0 fix: can use reuse with inheritance (#914) by @nikophil

Full Change List

v2.5.1

22 May 06:32
Compare
Choose a tag to compare

fe12d09 fix: add missing flush_once feature flag (#912) by @phasdev
f991999 docs: Fix data providers phpunit link (#906) by @alexander-schranz
19ddd55 docs: in memory behavior needs PhpUnit extension (#905) by @nikophil
6a0b4ac docs: improve docs for in-memory repositories (#904) by @nikophil

Full Change List

v2.5.0

13 May 06:29
Compare
Choose a tag to compare

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

v2.4.3

05 May 18:35
Compare
Choose a tag to compare

2b31429 chore: test with SF7.3 (#891) by @nikophil
50350cb minor: allow 10% gap in benchmark workflow (#880) by @nikophil

Full Change List

v2.4.2

17 Apr 06:26
Compare
Choose a tag to compare

25e9125 fix: Prevent random value collisions when kernel is rebooted (#879) by @HypeMC

Full Change List

v2.4.1

15 Apr 07:03
Compare
Choose a tag to compare

6b4fea8 fix(faker): missing parameter when using custom faker service (#877) by @silasjoisten

Full Change List