[zenstruck/foundry] introduce flush_once config (#1410)

This commit is contained in:
Nicolas PHILIPPE
2025-05-05 08:35:04 +02:00
committed by GitHub
parent 5de3a94747
commit 8d703a3fb2
3 changed files with 25 additions and 0 deletions
@@ -0,0 +1,8 @@
when@dev: &dev
# See full configuration: https://symfony.com/bundles/ZenstruckFoundryBundle/current/index.html#full-default-bundle-configuration
zenstruck_foundry:
persistence:
# Flush only once per call of `PersistentObjectFactory::create()` in userland
flush_once: true
when@test: *dev
+13
View File
@@ -0,0 +1,13 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"bundles": {
"Zenstruck\\Foundry\\ZenstruckFoundryBundle": ["dev", "test"]
},
"conflict": {
"doctrine/persistence": "<2.0",
"symfony/framework-bundle": "<6.4"
},
"aliases": ["foundry"]
}
+4
View File
@@ -0,0 +1,4 @@
* You're ready to use zenstruck/foundry. Create your first factory with
<info>bin/console make:factory</>.
* <fg=blue>Read</> the documentation at <comment>https://symfony.com/bundles/ZenstruckFoundryBundle/current/index.html</>