{"action":"created","issue":{"url":"https://api.github.com/repos/DASPRiD/container-interop-doctrine/issues/10","repository_url":"https://api.github.com/repos/DASPRiD/container-interop-doctrine","labels_url":"https://api.github.com/repos/DASPRiD/container-interop-doctrine/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/DASPRiD/container-interop-doctrine/issues/10/comments","events_url":"https://api.github.com/repos/DASPRiD/container-interop-doctrine/issues/10/events","html_url":"https://github.com/DASPRiD/container-interop-doctrine/issues/10","id":178601203,"number":10,"title":"How to configure ORM Mapping?","user":{"login":"lowtower","id":426242,"avatar_url":"https://avatars.githubusercontent.com/u/426242?v=3","gravatar_id":"","url":"https://api.github.com/users/lowtower","html_url":"https://github.com/lowtower","followers_url":"https://api.github.com/users/lowtower/followers","following_url":"https://api.github.com/users/lowtower/following{/other_user}","gists_url":"https://api.github.com/users/lowtower/gists{/gist_id}","starred_url":"https://api.github.com/users/lowtower/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lowtower/subscriptions","organizations_url":"https://api.github.com/users/lowtower/orgs","repos_url":"https://api.github.com/users/lowtower/repos","events_url":"https://api.github.com/users/lowtower/events{/privacy}","received_events_url":"https://api.github.com/users/lowtower/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-22T12:49:54Z","updated_at":"2016-09-22T17:03:49Z","closed_at":null,"body":"How to configure ORM Mapping?\r\n\r\nI have configured doctrine in zend expressive following [xtreamwayz' guide](https://xtreamwayz.com/blog/2015-12-12-setup-doctrine-for-zend-expressive):\r\n```php\r\n// ORM mapping by Annotation\r\nAnnotationRegistry::registerFile('vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php');\r\n$driver = new AnnotationDriver(\r\n    new AnnotationReader(),\r\n    ['src/Domain']\r\n);\r\n```\r\nHow would I configure ORM mapping with container-interop-doctrine?\r\nThanks in advance,\r\nLT."},"comment":{"url":"https://api.github.com/repos/DASPRiD/container-interop-doctrine/issues/comments/248964898","html_url":"https://github.com/DASPRiD/container-interop-doctrine/issues/10#issuecomment-248964898","issue_url":"https://api.github.com/repos/DASPRiD/container-interop-doctrine/issues/10","id":248964898,"user":{"login":"mattgrosse","id":293231,"avatar_url":"https://avatars.githubusercontent.com/u/293231?v=3","gravatar_id":"","url":"https://api.github.com/users/mattgrosse","html_url":"https://github.com/mattgrosse","followers_url":"https://api.github.com/users/mattgrosse/followers","following_url":"https://api.github.com/users/mattgrosse/following{/other_user}","gists_url":"https://api.github.com/users/mattgrosse/gists{/gist_id}","starred_url":"https://api.github.com/users/mattgrosse/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattgrosse/subscriptions","organizations_url":"https://api.github.com/users/mattgrosse/orgs","repos_url":"https://api.github.com/users/mattgrosse/repos","events_url":"https://api.github.com/users/mattgrosse/events{/privacy}","received_events_url":"https://api.github.com/users/mattgrosse/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T17:03:49Z","updated_at":"2016-09-22T17:03:49Z","body":"This guide will help you: https://www.jamestitcumb.com/posts/integrating-doctrine-expressive-easier\r\n\r\nBut all you really need to do is install container-interop-doctrine via composer, then make a config/autoload/doctrine.local.php file. [This file](https://github.com/DASPRiD/container-interop-doctrine/blob/master/example/minimal-config.php) is the minimal config example. You can copy that and put your db connection info in there, change the XmlDriver::class to AnnotationDriver::class, and update the path to point to the correct location (which looks like src/Domain from your example)."}}
{"actor":{"display_login":"mattgrosse"}}