{"action":"created","issue":{"url":"https://api.github.com/repos/algolia/AlgoliaSearchBundle/issues/34","labels_url":"https://api.github.com/repos/algolia/AlgoliaSearchBundle/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/algolia/AlgoliaSearchBundle/issues/34/comments","events_url":"https://api.github.com/repos/algolia/AlgoliaSearchBundle/issues/34/events","html_url":"https://github.com/algolia/AlgoliaSearchBundle/pull/34","id":124352637,"number":34,"title":"Arbitrary addition of elements in Primary key","user":{"login":"Nainterceptor","id":1492215,"avatar_url":"https://avatars.githubusercontent.com/u/1492215?v=3","gravatar_id":"","url":"https://api.github.com/users/Nainterceptor","html_url":"https://github.com/Nainterceptor","followers_url":"https://api.github.com/users/Nainterceptor/followers","following_url":"https://api.github.com/users/Nainterceptor/following{/other_user}","gists_url":"https://api.github.com/users/Nainterceptor/gists{/gist_id}","starred_url":"https://api.github.com/users/Nainterceptor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nainterceptor/subscriptions","organizations_url":"https://api.github.com/users/Nainterceptor/orgs","repos_url":"https://api.github.com/users/Nainterceptor/repos","events_url":"https://api.github.com/users/Nainterceptor/events{/privacy}","received_events_url":"https://api.github.com/users/Nainterceptor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-30T14:11:48Z","updated_at":"2016-01-05T23:43:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/algolia/AlgoliaSearchBundle/pulls/34","html_url":"https://github.com/algolia/AlgoliaSearchBundle/pull/34","diff_url":"https://github.com/algolia/AlgoliaSearchBundle/pull/34.diff","patch_url":"https://github.com/algolia/AlgoliaSearchBundle/pull/34.patch"},"body":"Hi,\r\n\r\nWe use Gedmo to translate our entities. We have an issue : Index is rewritten when we change language. (Edition of fr_FR of our entity erase en_GB, for example) \r\n\r\nSolution : Make a composite primary key, including locale.\r\n\r\nProblem : Gedmo have property \"locale\" which can contain locale, but this property is not a column, so Doctrine not considere this one as a Primary key with `@ORM\\Id annotation`.\r\n\r\nThis pull request add an Id annotation in Algolia Bundle to handle this use case. Now I can add `@Algolia\\Id` to my $locale property to make my composite primary key, Algolia side.\r\n\r\nHave a nice day,\r\nGaël"},"comment":{"url":"https://api.github.com/repos/algolia/AlgoliaSearchBundle/issues/comments/169170622","html_url":"https://github.com/algolia/AlgoliaSearchBundle/pull/34#issuecomment-169170622","issue_url":"https://api.github.com/repos/algolia/AlgoliaSearchBundle/issues/34","id":169170622,"user":{"login":"Nainterceptor","id":1492215,"avatar_url":"https://avatars.githubusercontent.com/u/1492215?v=3","gravatar_id":"","url":"https://api.github.com/users/Nainterceptor","html_url":"https://github.com/Nainterceptor","followers_url":"https://api.github.com/users/Nainterceptor/followers","following_url":"https://api.github.com/users/Nainterceptor/following{/other_user}","gists_url":"https://api.github.com/users/Nainterceptor/gists{/gist_id}","starred_url":"https://api.github.com/users/Nainterceptor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nainterceptor/subscriptions","organizations_url":"https://api.github.com/users/Nainterceptor/orgs","repos_url":"https://api.github.com/users/Nainterceptor/repos","events_url":"https://api.github.com/users/Nainterceptor/events{/privacy}","received_events_url":"https://api.github.com/users/Nainterceptor/received_events","type":"User","site_admin":false},"created_at":"2016-01-05T23:43:14Z","updated_at":"2016-01-05T23:43:14Z","body":"Thanks @maxiloc, please see my last commit"}}