diff --git a/src/Collections/Collection.php b/src/Collections/Collection.php index ad6d26a0..9d8873b1 100644 --- a/src/Collections/Collection.php +++ b/src/Collections/Collection.php @@ -36,6 +36,7 @@ public static function fromModel(Model $model) ->futureDateBehavior($model->settings['future_date_behavior'] ?? null) ->pastDateBehavior($model->settings['past_date_behavior'] ?? null) ->previewTargets($model->settings['preview_targets'] ?? []) + ->entryClass($model->settings['entry_class'] ?? null) ->handle($model->handle) ->model($model); } @@ -76,6 +77,7 @@ public static function makeModelFromContract(Contract $source) 'future_date_behavior' => $source->futureDateBehavior(), 'preview_targets' => $source->previewTargets(), 'origin_behavior' => $source->originBehavior(), + 'entry_class' => $source->entryClass(), ]); return $model;