From 3408633a9d5db3d3a73cf807450e6486a0fd0d23 Mon Sep 17 00:00:00 2001 From: Priyadi Iman Nurcahyo <1102197+priyadi@users.noreply.github.com> Date: Tue, 20 Feb 2024 21:22:51 +0700 Subject: [PATCH] fix: Fix dynamic properties in Symfony profiler panel. --- CHANGELOG.md | 1 + templates/data_collector.html.twig | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f94cb537..6ce05ff3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ * feat: Dynamic properties (`stdClass` & co) on the target side. * feat: Deprecate `ArrayToObjectTransformer` & `ObjectToArrayTransformer`, replace with `ArrayObjectTransformer`. +* fix: Fix dynamic properties in Symfony profiler panel. ## 1.0.0 diff --git a/templates/data_collector.html.twig b/templates/data_collector.html.twig index c82ca24f..558355bf 100644 --- a/templates/data_collector.html.twig +++ b/templates/data_collector.html.twig @@ -394,6 +394,8 @@ ->{{ name }}() {%- elseif mode == constant('Rekalogika\\Mapper\\Transformer\\ObjectToObjectMetadata\\ReadMode::Property') -%} ->{{ name }} + {%- elseif mode == constant('Rekalogika\\Mapper\\Transformer\\ObjectToObjectMetadata\\ReadMode::DynamicProperty') -%} + ->{{ name }} {%- else -%} None {%- endif -%} @@ -405,6 +407,8 @@ ->{{ name }}() {%- elseif mode == constant('Rekalogika\\Mapper\\Transformer\\ObjectToObjectMetadata\\WriteMode::Property') -%} ->{{ name }} + {%- elseif mode == constant('Rekalogika\\Mapper\\Transformer\\ObjectToObjectMetadata\\WriteMode::DynamicProperty') -%} + ->{{ name }} {%- elseif mode == constant('Rekalogika\\Mapper\\Transformer\\ObjectToObjectMetadata\\WriteMode::AdderRemover') -%} ->{{ name }}() {%- elseif mode == constant('Rekalogika\\Mapper\\Transformer\\ObjectToObjectMetadata\\WriteMode::Constructor') -%}