Skip to content

Commit c094d5d

Browse files
committed
fix error
1 parent 6eed9eb commit c094d5d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EmbedsManyBehavior.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ protected function setAttributes(array $attributes, $safeOnly = true)
2424
foreach($attributes as $modelAttributes) {
2525
$model = $this->createEmbedded($modelAttributes, $safeOnly);
2626
$model->setFormName($this->getFormName($this->storage->getNextIndex()));
27-
$this->storage[] = $this->createEmbedded($modelAttributes, $safeOnly);
27+
$this->storage[] = $model;
2828
}
2929
}
3030

0 commit comments

Comments
 (0)