Skip to content

Commit 1ebd911

Browse files
committed
Merge pull request lazychaser#36 from thijskok/master
Fix missing $connection parameter for newFromBuilder method
2 parents 933557d + 7ae70ca commit 1ebd911

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Node.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,10 +756,10 @@ public function newCollection(array $models = array())
756756
/**
757757
* {@inheritdoc}
758758
*/
759-
public function newFromBuilder($attributes = array())
759+
public function newFromBuilder($attributes = array(), $connection = null)
760760
{
761761
/** @var Node $instance */
762-
$instance = parent::newFromBuilder($attributes);
762+
$instance = parent::newFromBuilder($attributes, $connection);
763763

764764
$instance->clearAction();
765765

0 commit comments

Comments
 (0)