diff --git a/Library/Phalcon/Mvc/Model/EagerLoading/EagerLoad.php b/Library/Phalcon/Mvc/Model/EagerLoading/EagerLoad.php index 0e38a6be7..46f955b6b 100644 --- a/Library/Phalcon/Mvc/Model/EagerLoading/EagerLoad.php +++ b/Library/Phalcon/Mvc/Model/EagerLoading/EagerLoad.php @@ -163,6 +163,7 @@ public function load() if (static::$isPhalcon2) { $record->{$alias} = null; $record->{$alias} = $referencedModels; + $record->_related[$alias] = $referenceModels; } } else { $record->{$alias} = null;