Skip to content

Commit

Permalink
Merge pull request #3421 from insiders/form-submission-export
Browse files Browse the repository at this point in the history
[FormBundle] Fix form submission export
  • Loading branch information
acrobat authored Jun 9, 2024
2 parents 4a3c486 + d913d9f commit 77e4cef
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 77e4cef

Please sign in to comment.