Skip to content

Conversation

lyrixx
Copy link
Member

@lyrixx lyrixx commented Oct 3, 2019

This sentence is confusing and lead to bad practices:

  • It's not a good idea to flush in the model layer
  • It can lead to many calls to flush() method if the user uses a workflow (with many to places after a transition)
  • It's not possible to "preview" what a transition do, because everything is flushed in the DB

This sentence is confusing and lead to bad practices:

* It's not a good idea to flush in the model layer
* It can lead to many calls to `flush()` method if the user uses a workflow (with many `to` places after a transition)
* It's not possible to "preview" what a transition do, because everything is flushed in the DB
@javiereguiluz
Copy link
Member

Thanks Grégoire.

javiereguiluz added a commit that referenced this pull request Oct 3, 2019
…t (lyrixx)

This PR was merged into the 3.4 branch.

Discussion
----------

[Workflow] Removed note about flushing in `entered` event

This sentence is confusing and lead to bad practices:

* It's not a good idea to flush in the model layer
* It can lead to many calls to `flush()` method if the user uses a workflow (with many `to` places after a transition)
* It's not possible to "preview" what a transition do, because everything is flushed in the DB

Commits
-------

d7511a1 [Workflow] Removed note about flushing in `entered` event
@javiereguiluz javiereguiluz merged commit d7511a1 into symfony:3.4 Oct 3, 2019
@lyrixx lyrixx deleted the patch-1 branch October 3, 2019 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants