Skip to content

Commit

Permalink
Fix exporting form submission
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny van Wijk committed Jun 6, 2024
1 parent 4a3c486 commit d913d9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,8 @@ public function buildIterator()

$collection = new ArrayCollection();
$i = 0;
foreach ($iterableResult as $row) {
foreach ($iterableResult as $submission) {
/* @var FormSubmission $submission */
$submission = $row[0];

// Write row data
$data = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ protected function getMockedEntityManager(): \Doctrine\ORM\EntityManager
]));

$submissions = [
[$sub],
[new FormSubmission()],
[new FormSubmission()],
$sub,
new FormSubmission(),
new FormSubmission(),
];
$query = $this->getMockBuilder('Doctrine\ORM\AbstractQuery')
->disableOriginalConstructor()
Expand Down

0 comments on commit d913d9f

Please sign in to comment.