{"action":"created","issue":{"url":"https://api.github.com/repos/zfcampus/zf-hal/issues/143","repository_url":"https://api.github.com/repos/zfcampus/zf-hal","labels_url":"https://api.github.com/repos/zfcampus/zf-hal/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/zfcampus/zf-hal/issues/143/comments","events_url":"https://api.github.com/repos/zfcampus/zf-hal/issues/143/events","html_url":"https://github.com/zfcampus/zf-hal/issues/143","id":160381429,"number":143,"title":"createEntityFromMetadata not use entityExtractor result","user":{"login":"DanielBertocci","id":10078791,"avatar_url":"https://avatars.githubusercontent.com/u/10078791?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielBertocci","html_url":"https://github.com/DanielBertocci","followers_url":"https://api.github.com/users/DanielBertocci/followers","following_url":"https://api.github.com/users/DanielBertocci/following{/other_user}","gists_url":"https://api.github.com/users/DanielBertocci/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielBertocci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielBertocci/subscriptions","organizations_url":"https://api.github.com/users/DanielBertocci/orgs","repos_url":"https://api.github.com/users/DanielBertocci/repos","events_url":"https://api.github.com/users/DanielBertocci/events{/privacy}","received_events_url":"https://api.github.com/users/DanielBertocci/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-15T09:49:00Z","updated_at":"2016-06-15T16:08:34Z","closed_at":null,"body":"Using **Apigility**, I configured a service with **Reflection Hydrator** (in my case a custom hydrator which transforms the array properties keys into camel-case).\r\n\r\nThe problem is that every elaboration on the object made by the hydrator are unused: I notice in _ResourceFactory.php_ there is:\r\n\r\n```\r\n55)    $data = $this->entityExtractor->extract($object);\r\n       [...]\r\n72)    $halEntity = new Entity($object, $id);\r\n```\r\n\r\nwhere **$object** is the original object.\r\n\r\nIf I pass **$data** to the Entity constructor, as I expected, everything works.\r\nDid I misunderstand the meaning of this lines?"},"comment":{"url":"https://api.github.com/repos/zfcampus/zf-hal/issues/comments/226236924","html_url":"https://github.com/zfcampus/zf-hal/issues/143#issuecomment-226236924","issue_url":"https://api.github.com/repos/zfcampus/zf-hal/issues/143","id":226236924,"user":{"login":"TomHAnderson","id":493920,"avatar_url":"https://avatars.githubusercontent.com/u/493920?v=3","gravatar_id":"","url":"https://api.github.com/users/TomHAnderson","html_url":"https://github.com/TomHAnderson","followers_url":"https://api.github.com/users/TomHAnderson/followers","following_url":"https://api.github.com/users/TomHAnderson/following{/other_user}","gists_url":"https://api.github.com/users/TomHAnderson/gists{/gist_id}","starred_url":"https://api.github.com/users/TomHAnderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomHAnderson/subscriptions","organizations_url":"https://api.github.com/users/TomHAnderson/orgs","repos_url":"https://api.github.com/users/TomHAnderson/repos","events_url":"https://api.github.com/users/TomHAnderson/events{/privacy}","received_events_url":"https://api.github.com/users/TomHAnderson/received_events","type":"User","site_admin":false},"created_at":"2016-06-15T16:08:34Z","updated_at":"2016-06-15T16:08:34Z","body":"A HalEntity is not a $object which may also be an entity.  The HalEntity is a wrapper around the entity."}}
{"actor":{"display_login":"TomHAnderson"}}