{"action":"opened","issue":{"url":"https://api.github.com/repos/mark-gerarts/automapper-plus/issues/26","repository_url":"https://api.github.com/repos/mark-gerarts/automapper-plus","labels_url":"https://api.github.com/repos/mark-gerarts/automapper-plus/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/mark-gerarts/automapper-plus/issues/26/comments","events_url":"https://api.github.com/repos/mark-gerarts/automapper-plus/issues/26/events","html_url":"https://github.com/mark-gerarts/automapper-plus/issues/26","id":368171436,"node_id":"MDU6SXNzdWUzNjgxNzE0MzY=","number":26,"title":"Doctrine proxies are not supported","user":{"login":"BoShurik","id":1428848,"node_id":"MDQ6VXNlcjE0Mjg4NDg=","avatar_url":"https://avatars2.githubusercontent.com/u/1428848?v=4","gravatar_id":"","url":"https://api.github.com/users/BoShurik","html_url":"https://github.com/BoShurik","followers_url":"https://api.github.com/users/BoShurik/followers","following_url":"https://api.github.com/users/BoShurik/following{/other_user}","gists_url":"https://api.github.com/users/BoShurik/gists{/gist_id}","starred_url":"https://api.github.com/users/BoShurik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BoShurik/subscriptions","organizations_url":"https://api.github.com/users/BoShurik/orgs","repos_url":"https://api.github.com/users/BoShurik/repos","events_url":"https://api.github.com/users/BoShurik/events{/privacy}","received_events_url":"https://api.github.com/users/BoShurik/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-09T11:50:18Z","updated_at":"2018-10-09T11:50:18Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"The problem is here: https://github.com/mark-gerarts/automapper-plus/blob/master/src/PropertyAccessor/PropertyAccessor.php#L95-L102\r\n\r\n```php\r\n    protected function setPrivate($object, string $propertyName, $value): void\r\n    {\r\n        $setter = function($value) use ($propertyName) {\r\n            $this->{$propertyName} = $value;\r\n        };\r\n        $boundSetter = \\Closure::bind($setter, $object, get_class($object));\r\n        $boundSetter($value);\r\n    }\r\n```\r\n\r\n`get_class($object)` returns proxy class name. This scope does not have access to private properties. Sadly this code does not throw any exception."}}
{"actor":{"display_login":"BoShurik"}}