Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Changed computeSingleDocumentChangeset to computeChangeSet #14

Merged
merged 1 commit into from
Apr 17, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion EventListener/AutoRouteListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,13 @@ public function onFlush(OnFlushEventArgs $args)
$context = $this->getArm()->updateAutoRouteForDocument($document);
foreach ($context->getRoutes() as $route) {
$dm->persist($route);
$uow->computeSingleDocumentChangeSet($route);

// this was originally computeSingleDocumentChangeset
// however this caused problems in a real usecase
// (functional tests were fine)
//
// this is probably not very efficient, but it works
$uow->computeChangeSets();
}
}
}
Expand Down