Skip to content

Commit

Permalink
Remove leftover code
Browse files Browse the repository at this point in the history
  • Loading branch information
mpdude committed Sep 5, 2024
1 parent 6099d87 commit f58630b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 177 deletions.
10 changes: 4 additions & 6 deletions src/ORMTestInfrastructure/Importer.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,10 @@ protected function importFromFile($path)
*/
protected function importFromCallback($callback)
{
$import = function (ObjectManager $objectManager) use ($callback) {
$decorator = new MemorizingObjectManagerDecorator($objectManager);
call_user_func($callback, $decorator);
return $decorator->getSeenEntities();
};
$this->entityManager->wrapInTransaction($import);
$this->entityManager->wrapInTransaction(function (ObjectManager $objectManager) use ($callback) {
call_user_func($callback, $objectManager);
});

// Clear the entity manager to ensure that there are no leftovers in the identity map.
$this->entityManager->clear();
}
Expand Down
100 changes: 0 additions & 100 deletions tests/ORMTestInfrastructure/DetachingObjectManagerDecoratorTest.php

This file was deleted.

This file was deleted.

0 comments on commit f58630b

Please sign in to comment.