You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the following code calls $em->flush() twice. First, when creating the nested CategoryFactory and a second time after persisting the PostFactory.
It would be better if the nested CategoryFactory was just persisted, then after the PostFactory is persisted, a single flush occurs capturing all changes.
The text was updated successfully, but these errors were encountered:
Before the callback is executed, flushing is disabled globally (new concept). Any factories created within the callback are just persisted. After the callback is executed, run flush and re-enable flushing globally.
kbond
added a commit
to kbond/foundry
that referenced
this issue
Nov 9, 2020
Currently, the following code calls
$em->flush()
twice. First, when creating the nestedCategoryFactory
and a second time after persisting thePostFactory
.It would be better if the nested
CategoryFactory
was just persisted, then after thePostFactory
is persisted, a single flush occurs capturing all changes.The text was updated successfully, but these errors were encountered: