From f7cf7bc60033a17d057b5ea3f0c21a10d3d0abff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20Perr=C3=A9al?= <guillaume.perreal@irstea.fr> Date: Fri, 11 Mar 2016 16:33:26 +0100 Subject: [PATCH] =?UTF-8?q?N'affiche=20pas=20les=20attributs=20h=C3=A9rit?= =?UTF-8?q?=C3=A9s.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Model/Decorator/AttributeDecorator.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Model/Decorator/AttributeDecorator.php b/Model/Decorator/AttributeDecorator.php index e10be28..f830e81 100644 --- a/Model/Decorator/AttributeDecorator.php +++ b/Model/Decorator/AttributeDecorator.php @@ -27,6 +27,11 @@ class AttributeDecorator implements DecoratorInterface { foreach($class->getProperties() as $property) { /* @var $property ReflectionProperty */ + + if ($property->getDeclaringClass() != $class) { + continue; + } + $node->addAttribute( new Member( $property->getName(), -- GitLab