Skip to content

Commit 0cb93da

Browse files
committed
KRF-203 #resolve Added Runtime integration tests
1 parent 224b788 commit 0cb93da

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Model/SelectLoop.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ public function export(LoopModelInterface $loop, $all = false)
389389
$loop->stop();
390390

391391
$list = $all === true ? $this : $this->getTransferableProperties();
392-
foreach ($this as $key=>$val)
392+
foreach ($list as $key=>$val)
393393
{
394394
$loop->$key = $this->$key;
395395
}
@@ -407,7 +407,7 @@ public function import(LoopModelInterface $loop, $all = false)
407407
$loop->stop();
408408

409409
$list = $all === true ? $this : $this->getTransferableProperties();
410-
foreach ($this as $key=>$val)
410+
foreach ($list as $key=>$val)
411411
{
412412
$this->$key = $loop->$key;
413413
}
@@ -425,7 +425,7 @@ public function swap(LoopModelInterface $loop, $all = false)
425425
$loop->stop();
426426

427427
$list = $all === true ? $this : $this->getTransferableProperties();
428-
foreach ($this as $key=>$val)
428+
foreach ($list as $key=>$val)
429429
{
430430
$tmp = $loop->$key;
431431
$loop->$key = $this->$key;
@@ -505,7 +505,8 @@ private function getTransferableProperties()
505505
{
506506
return [
507507
'nextTickQueue' => null,
508-
'futureTickQueue' => null
508+
'futureTickQueue' => null,
509+
'flowController' => null
509510
];
510511
}
511512
}

0 commit comments

Comments
 (0)