{"action":"created","comment":{"url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/pulls/comments/65814377","id":65814377,"diff_hunk":"@@ -80,6 +80,66 @@ Some sample mappings:\n              filter: \"a*\"\n              fetchDepth: 3\n \n+Child restriction\n+~~~~~~~~~~~~~~~~~\n+\n+You may either specify which classes may be children of a document or that a\n+document can have no children (i.e. that it be a leaf node).\n+\n+.. configuration-block::\n+\n+    .. code-block:: php\n+\n+        <?php\n+        /** @Document(childClasses={\"Article\", \"Page\"}) **/\n+        class ContentFolder\n+        {\n+            // ...\n+        }\n+\n+    .. code-block:: xml\n+\n+        <doctrine-mapping>\n+            <document class=\"ContentFolder\" referenceable=\"true\">\n+                <child-class>Article</child-class>\n+                <child-class>Page</child-class>\n+                <!-- ... -->\n+            </document>\n+        </doctrine-mapping>\n+\n+    .. code-block:: yaml\n+\n+        ContentFolder:\n+            # ...\n+            child_classes: [ \"Article\", \"Page\" ]\n+\n+To specify that a document can have no children:\n+\n+.. configuration-block::\n+\n+    .. code-block:: php\n+\n+        <?php\n+        /** @Document(isLeaf=true) **/\n+        class LeafDocument\n+        {\n+            // ...\n+        }\n+\n+    .. code-block:: xml\n+\n+        <doctrine-mapping>\n+            <document class=\"LeafDocument\" isLeaf=\"true\">","path":"en/reference/association-mapping.rst","position":53,"original_position":53,"commit_id":"7062140307c0f6822c0b69e3e25638f7d6ec4175","original_commit_id":"7062140307c0f6822c0b69e3e25638f7d6ec4175","user":{"login":"dantleech","id":530801,"avatar_url":"https://avatars.githubusercontent.com/u/530801?v=3","gravatar_id":"","url":"https://api.github.com/users/dantleech","html_url":"https://github.com/dantleech","followers_url":"https://api.github.com/users/dantleech/followers","following_url":"https://api.github.com/users/dantleech/following{/other_user}","gists_url":"https://api.github.com/users/dantleech/gists{/gist_id}","starred_url":"https://api.github.com/users/dantleech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantleech/subscriptions","organizations_url":"https://api.github.com/users/dantleech/orgs","repos_url":"https://api.github.com/users/dantleech/repos","events_url":"https://api.github.com/users/dantleech/events{/privacy}","received_events_url":"https://api.github.com/users/dantleech/received_events","type":"User","site_admin":false},"body":"`is-leaf`","created_at":"2016-06-05T09:32:17Z","updated_at":"2016-06-05T09:32:17Z","html_url":"https://github.com/doctrine/phpcr-odm-documentation/pull/81#discussion_r65814377","pull_request_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/pulls/81","_links":{"self":{"href":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/pulls/comments/65814377"},"html":{"href":"https://github.com/doctrine/phpcr-odm-documentation/pull/81#discussion_r65814377"},"pull_request":{"href":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/pulls/81"}}},"pull_request":{"url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/pulls/81","id":72624794,"html_url":"https://github.com/doctrine/phpcr-odm-documentation/pull/81","diff_url":"https://github.com/doctrine/phpcr-odm-documentation/pull/81.diff","patch_url":"https://github.com/doctrine/phpcr-odm-documentation/pull/81.patch","issue_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/issues/81","number":81,"state":"open","locked":false,"title":"Added childclasses and isleaf documentation","user":{"login":"dantleech","id":530801,"avatar_url":"https://avatars.githubusercontent.com/u/530801?v=3","gravatar_id":"","url":"https://api.github.com/users/dantleech","html_url":"https://github.com/dantleech","followers_url":"https://api.github.com/users/dantleech/followers","following_url":"https://api.github.com/users/dantleech/following{/other_user}","gists_url":"https://api.github.com/users/dantleech/gists{/gist_id}","starred_url":"https://api.github.com/users/dantleech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantleech/subscriptions","organizations_url":"https://api.github.com/users/dantleech/orgs","repos_url":"https://api.github.com/users/dantleech/repos","events_url":"https://api.github.com/users/dantleech/events{/privacy}","received_events_url":"https://api.github.com/users/dantleech/received_events","type":"User","site_admin":false},"body":"Adds documentation for PR https://github.com/doctrine/phpcr-odm/pull/706","created_at":"2016-06-05T09:24:44Z","updated_at":"2016-06-05T09:32:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd998096dc32162066699a69043ddf6e2985ab8d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/pulls/81/commits","review_comments_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/pulls/81/comments","review_comment_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/issues/81/comments","statuses_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/statuses/7062140307c0f6822c0b69e3e25638f7d6ec4175","head":{"label":"doctrine:child_classes","ref":"child_classes","sha":"7062140307c0f6822c0b69e3e25638f7d6ec4175","user":{"login":"doctrine","id":209254,"avatar_url":"https://avatars.githubusercontent.com/u/209254?v=3","gravatar_id":"","url":"https://api.github.com/users/doctrine","html_url":"https://github.com/doctrine","followers_url":"https://api.github.com/users/doctrine/followers","following_url":"https://api.github.com/users/doctrine/following{/other_user}","gists_url":"https://api.github.com/users/doctrine/gists{/gist_id}","starred_url":"https://api.github.com/users/doctrine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doctrine/subscriptions","organizations_url":"https://api.github.com/users/doctrine/orgs","repos_url":"https://api.github.com/users/doctrine/repos","events_url":"https://api.github.com/users/doctrine/events{/privacy}","received_events_url":"https://api.github.com/users/doctrine/received_events","type":"Organization","site_admin":false},"repo":{"id":3238281,"name":"phpcr-odm-documentation","full_name":"doctrine/phpcr-odm-documentation","owner":{"login":"doctrine","id":209254,"avatar_url":"https://avatars.githubusercontent.com/u/209254?v=3","gravatar_id":"","url":"https://api.github.com/users/doctrine","html_url":"https://github.com/doctrine","followers_url":"https://api.github.com/users/doctrine/followers","following_url":"https://api.github.com/users/doctrine/following{/other_user}","gists_url":"https://api.github.com/users/doctrine/gists{/gist_id}","starred_url":"https://api.github.com/users/doctrine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doctrine/subscriptions","organizations_url":"https://api.github.com/users/doctrine/orgs","repos_url":"https://api.github.com/users/doctrine/repos","events_url":"https://api.github.com/users/doctrine/events{/privacy}","received_events_url":"https://api.github.com/users/doctrine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/doctrine/phpcr-odm-documentation","description":"PHP Content Repository ODM Documentation","fork":false,"url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation","forks_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/forks","keys_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/teams","hooks_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/hooks","issue_events_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/issues/events{/number}","events_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/events","assignees_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/assignees{/user}","branches_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/branches{/branch}","tags_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/tags","blobs_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/languages","stargazers_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/stargazers","contributors_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/contributors","subscribers_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/subscribers","subscription_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/subscription","commits_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/contents/{+path}","compare_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/merges","archive_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/downloads","issues_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/issues{/number}","pulls_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/labels{/name}","releases_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/releases{/id}","deployments_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/deployments","created_at":"2012-01-22T05:42:10Z","updated_at":"2015-11-05T12:51:54Z","pushed_at":"2016-06-05T09:29:35Z","git_url":"git://github.com/doctrine/phpcr-odm-documentation.git","ssh_url":"git@github.com:doctrine/phpcr-odm-documentation.git","clone_url":"https://github.com/doctrine/phpcr-odm-documentation.git","svn_url":"https://github.com/doctrine/phpcr-odm-documentation","homepage":"http://www.doctrine-project.org","size":318,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":5,"forks":20,"open_issues":5,"watchers":4,"default_branch":"master"}},"base":{"label":"doctrine:master","ref":"master","sha":"01f0b078e1396c996b175e6189487e195e253efd","user":{"login":"doctrine","id":209254,"avatar_url":"https://avatars.githubusercontent.com/u/209254?v=3","gravatar_id":"","url":"https://api.github.com/users/doctrine","html_url":"https://github.com/doctrine","followers_url":"https://api.github.com/users/doctrine/followers","following_url":"https://api.github.com/users/doctrine/following{/other_user}","gists_url":"https://api.github.com/users/doctrine/gists{/gist_id}","starred_url":"https://api.github.com/users/doctrine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doctrine/subscriptions","organizations_url":"https://api.github.com/users/doctrine/orgs","repos_url":"https://api.github.com/users/doctrine/repos","events_url":"https://api.github.com/users/doctrine/events{/privacy}","received_events_url":"https://api.github.com/users/doctrine/received_events","type":"Organization","site_admin":false},"repo":{"id":3238281,"name":"phpcr-odm-documentation","full_name":"doctrine/phpcr-odm-documentation","owner":{"login":"doctrine","id":209254,"avatar_url":"https://avatars.githubusercontent.com/u/209254?v=3","gravatar_id":"","url":"https://api.github.com/users/doctrine","html_url":"https://github.com/doctrine","followers_url":"https://api.github.com/users/doctrine/followers","following_url":"https://api.github.com/users/doctrine/following{/other_user}","gists_url":"https://api.github.com/users/doctrine/gists{/gist_id}","starred_url":"https://api.github.com/users/doctrine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/doctrine/subscriptions","organizations_url":"https://api.github.com/users/doctrine/orgs","repos_url":"https://api.github.com/users/doctrine/repos","events_url":"https://api.github.com/users/doctrine/events{/privacy}","received_events_url":"https://api.github.com/users/doctrine/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/doctrine/phpcr-odm-documentation","description":"PHP Content Repository ODM Documentation","fork":false,"url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation","forks_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/forks","keys_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/teams","hooks_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/hooks","issue_events_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/issues/events{/number}","events_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/events","assignees_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/assignees{/user}","branches_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/branches{/branch}","tags_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/tags","blobs_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/statuses/{sha}","languages_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/languages","stargazers_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/stargazers","contributors_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/contributors","subscribers_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/subscribers","subscription_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/subscription","commits_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/contents/{+path}","compare_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/merges","archive_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/downloads","issues_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/issues{/number}","pulls_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/pulls{/number}","milestones_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/milestones{/number}","notifications_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/labels{/name}","releases_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/releases{/id}","deployments_url":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/deployments","created_at":"2012-01-22T05:42:10Z","updated_at":"2015-11-05T12:51:54Z","pushed_at":"2016-06-05T09:29:35Z","git_url":"git://github.com/doctrine/phpcr-odm-documentation.git","ssh_url":"git@github.com:doctrine/phpcr-odm-documentation.git","clone_url":"https://github.com/doctrine/phpcr-odm-documentation.git","svn_url":"https://github.com/doctrine/phpcr-odm-documentation","homepage":"http://www.doctrine-project.org","size":318,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":5,"forks":20,"open_issues":5,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/pulls/81"},"html":{"href":"https://github.com/doctrine/phpcr-odm-documentation/pull/81"},"issue":{"href":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/issues/81"},"comments":{"href":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/issues/81/comments"},"review_comments":{"href":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/pulls/81/comments"},"review_comment":{"href":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/pulls/81/commits"},"statuses":{"href":"https://api.github.com/repos/doctrine/phpcr-odm-documentation/statuses/7062140307c0f6822c0b69e3e25638f7d6ec4175"}}}}
{"actor":{"display_login":"dantleech"}}