{"action":"opened","issue":{"url":"https://api.github.com/repos/willdurand/Hateoas/issues/235","repository_url":"https://api.github.com/repos/willdurand/Hateoas","labels_url":"https://api.github.com/repos/willdurand/Hateoas/issues/235/labels{/name}","comments_url":"https://api.github.com/repos/willdurand/Hateoas/issues/235/comments","events_url":"https://api.github.com/repos/willdurand/Hateoas/issues/235/events","html_url":"https://github.com/willdurand/Hateoas/issues/235","id":155718182,"number":235,"title":"Annotation Class Inheritance","user":{"login":"maennchen","id":333918,"avatar_url":"https://avatars.githubusercontent.com/u/333918?v=3","gravatar_id":"","url":"https://api.github.com/users/maennchen","html_url":"https://github.com/maennchen","followers_url":"https://api.github.com/users/maennchen/followers","following_url":"https://api.github.com/users/maennchen/following{/other_user}","gists_url":"https://api.github.com/users/maennchen/gists{/gist_id}","starred_url":"https://api.github.com/users/maennchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maennchen/subscriptions","organizations_url":"https://api.github.com/users/maennchen/orgs","repos_url":"https://api.github.com/users/maennchen/repos","events_url":"https://api.github.com/users/maennchen/events{/privacy}","received_events_url":"https://api.github.com/users/maennchen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-19T11:51:04Z","updated_at":"2016-05-19T11:51:04Z","closed_at":null,"body":"It seems that the class inheritance is ignored for annotations.\r\n\r\nI need to do that to get the inheritance. Am I doing something wrong?\r\n\r\n```patch\r\nFrom 0111785f8fc91e66195916072f1fcff05cbfa95d Mon Sep 17 00:00:00 2001\r\nFrom: =?UTF-8?q?Jonatan=20M=C3=A4nnchen?= <jonatan.maennchen@ibrows.ch>\r\nDate: Thu, 19 May 2016 11:47:25 +0000\r\nSubject: [PATCH] Annotation Class Inheritance\r\n\r\n---\r\n src/Hateoas/Configuration/Metadata/Driver/AnnotationDriver.php | 6 ++++++\r\n 1 file changed, 6 insertions(+)\r\n\r\ndiff --git a/src/Hateoas/Configuration/Metadata/Driver/AnnotationDriver.php b/src/Hateoas/Configuration/Metadata/Driver/AnnotationDriver.php\r\nindex 6364c55..41cc53d 100644\r\n--- a/src/Hateoas/Configuration/Metadata/Driver/AnnotationDriver.php\r\n+++ b/src/Hateoas/Configuration/Metadata/Driver/AnnotationDriver.php\r\n@@ -37,6 +37,12 @@ class AnnotationDriver implements DriverInterface\r\n     {\r\n         $annotations = $this->reader->getClassAnnotations($class);\r\n\r\n+        $parent = $class->getParentClass();\r\n+        while($parent instanceof  \\ReflectionClass) {\r\n+            $annotations = array_merge($annotations, $this->reader->getClassAnnotations($parent));\r\n+            $parent = $parent->getParentClass();\r\n+        }\r\n+\r\n         if (0 === count($annotations)) {\r\n             return null;\r\n         }\r\n--\r\n2.2.1\r\n\r\n```"}}