{"action":"opened","issue":{"url":"https://api.github.com/repos/sokil/php-mongo/issues/128","repository_url":"https://api.github.com/repos/sokil/php-mongo","labels_url":"https://api.github.com/repos/sokil/php-mongo/issues/128/labels{/name}","comments_url":"https://api.github.com/repos/sokil/php-mongo/issues/128/comments","events_url":"https://api.github.com/repos/sokil/php-mongo/issues/128/events","html_url":"https://github.com/sokil/php-mongo/issues/128","id":163381808,"number":128,"title":"Mapping with class prefix","user":{"login":"ramzes13","id":2761359,"avatar_url":"https://avatars.githubusercontent.com/u/2761359?v=3","gravatar_id":"","url":"https://api.github.com/users/ramzes13","html_url":"https://github.com/ramzes13","followers_url":"https://api.github.com/users/ramzes13/followers","following_url":"https://api.github.com/users/ramzes13/following{/other_user}","gists_url":"https://api.github.com/users/ramzes13/gists{/gist_id}","starred_url":"https://api.github.com/users/ramzes13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramzes13/subscriptions","organizations_url":"https://api.github.com/users/ramzes13/orgs","repos_url":"https://api.github.com/users/ramzes13/repos","events_url":"https://api.github.com/users/ramzes13/events{/privacy}","received_events_url":"https://api.github.com/users/ramzes13/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-01T12:03:56Z","updated_at":"2016-07-01T12:03:56Z","closed_at":null,"body":"When I set up the mapping for collections with class prefix, the documents class are set by default with 'Sokil\\Mongo\\Document'\r\n\r\nNow in custom collections I can set documentClass field, but this field is @deprecated\r\n`@deprecated since 1.13 Use 'documentClass' declaration in mapping`\r\n\r\nI think it would be good to add also document class prefix in mapping, where there are many collections to define.\r\n\r\n```php\r\n$client->map([\r\n    'databaseName'  => array(\r\n        collectionsPrefix => '\\Class\\Prefix',\r\n        documentsPrefix => '\\Class\\DocumentPrefix',\r\n     ),\r\n]);\r\n```\r\n"}}
{"actor":{"display_login":"ramzes13"}}