We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
First, thanks for the work on this bundle. I've been picking some ideas from ddd and this bundle has been very helpful !
So, I just wanted to issue a domain event after removing an entity and noticed it did not work if I had
tactician_domain_event: collect_from_all_managed_entities: true
Seems like the removed entity does not figure in the unit of work on the postFlush method.
On the other hand, after changing the collect_from_all_managed_entities configuration to true false (edit), the event was dispatched correctly.
The text was updated successfully, but these errors were encountered:
Hi, thanks for opening this issue!
noticed it did not work if I had
On the other hand, after changing the collect_from_all_managed_entities configuration to true, the event was dispatched correctly.
true
false
collect_from_all_managed_entities
Sorry, something went wrong.
Sorry for the typo, issue happened when value was set to true (see edit above).
Entity is "Article" and removal happens when calling remove method of ArticleRepository
public function remove(Article $article) { $article->prepareForRemoval(); $this->em->remove($article); }
And from Article :
public function prepareForRemoval() { $this->record(new ArticleWasRemoved($this->id)); }
No branches or pull requests
Hi,
First, thanks for the work on this bundle. I've been picking some ideas from ddd and this bundle has been very helpful !
So, I just wanted to issue a domain event after removing an entity and noticed it did not work if I had
Seems like the removed entity does not figure in the unit of work on the postFlush method.
On the other hand, after changing the collect_from_all_managed_entities configuration to
truefalse (edit), the event was dispatched correctly.The text was updated successfully, but these errors were encountered: