diff --git a/src/ReturnsChildModels.php b/src/ReturnsChildModels.php index 0fa10d0..389a027 100644 --- a/src/ReturnsChildModels.php +++ b/src/ReturnsChildModels.php @@ -25,7 +25,13 @@ public function newInstance($attributes = [], $exists = false) public function newFromBuilder($attributes = [], $connection = null) { - return $this->newInstance((array) $attributes, true); + $model = $this->newInstance((array) $attributes, true); + + $model->setConnection($connection ?: $this->getConnectionName()); + + $model->fireModelEvent('retrieved', false); + + return $model; } public function belongsTo($related, $foreignKey = null, $ownerKey = null, $relation = null)