{"action":"closed","number":13855,"pull_request":{"url":"https://api.github.com/repos/symfony/symfony/pulls/13855","id":30599389,"html_url":"https://github.com/symfony/symfony/pull/13855","diff_url":"https://github.com/symfony/symfony/pull/13855.diff","patch_url":"https://github.com/symfony/symfony/pull/13855.patch","issue_url":"https://api.github.com/repos/symfony/symfony/issues/13855","number":13855,"state":"closed","locked":false,"title":"Read validation contraints from Resources/config/validation/ sub-dir","user":{"login":"GromNaN","id":400034,"avatar_url":"https://avatars.githubusercontent.com/u/400034?v=3","gravatar_id":"","url":"https://api.github.com/users/GromNaN","html_url":"https://github.com/GromNaN","followers_url":"https://api.github.com/users/GromNaN/followers","following_url":"https://api.github.com/users/GromNaN/following{/other_user}","gists_url":"https://api.github.com/users/GromNaN/gists{/gist_id}","starred_url":"https://api.github.com/users/GromNaN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GromNaN/subscriptions","organizations_url":"https://api.github.com/users/GromNaN/orgs","repos_url":"https://api.github.com/users/GromNaN/repos","events_url":"https://api.github.com/users/GromNaN/events{/privacy}","received_events_url":"https://api.github.com/users/GromNaN/received_events","type":"User","site_admin":false},"body":"When a bundle contains many entities/documents and it uses YAML or XML format instead of annotations, it is convenient to split the validation constraints into several small files. \r\n\r\nWith this simple PR, every files in the `validation` sub-directory will be loaded by the validator like it's done for doctrine mapping.\r\n\r\n```\r\nResources/\r\n    config/\r\n        doctrine/\r\n            Author.orm.yml\r\n            Post.orm.yml\r\n        validation/\r\n            Author.yml\r\n            Post.yml\r\n```\r\n\r\n| Q             | A\r\n| ------------- | ---\r\n| Bug fix?      | no\r\n| New feature?  | yes\r\n| BC breaks?    | no\r\n| Deprecations? | no\r\n| Tests pass?   | yes\r\n| Fixed tickets | [How to split validation yaml files](http://stackoverflow.com/questions/24064813/how-to-split-validation-yaml-files-in-symfony-2-5/24210501#24210501)\r\n| License       | MIT\r\n| Doc PR        | https://github.com/symfony/symfony-docs/pull/5060\r\n\r\nRead more: http://blog.kevingomez.fr/2013/10/14/split-symfony2-yaml-validation-configuration-file/","created_at":"2015-03-05T21:52:04Z","updated_at":"2015-03-09T07:29:11Z","closed_at":"2015-03-09T07:29:11Z","merged_at":"2015-03-09T07:29:11Z","merge_commit_sha":"6bcdf62392d5dc353ed55d48f14dd8d8115be8e6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/symfony/symfony/pulls/13855/commits","review_comments_url":"https://api.github.com/repos/symfony/symfony/pulls/13855/comments","review_comment_url":"https://api.github.com/repos/symfony/symfony/pulls/comments{/number}","comments_url":"https://api.github.com/repos/symfony/symfony/issues/13855/comments","statuses_url":"https://api.github.com/repos/symfony/symfony/statuses/e41dcb3acdeaca696d1c24834275e4aa07821ed1","head":{"label":"GromNaN:validation-dir","ref":"validation-dir","sha":"e41dcb3acdeaca696d1c24834275e4aa07821ed1","user":{"login":"GromNaN","id":400034,"avatar_url":"https://avatars.githubusercontent.com/u/400034?v=3","gravatar_id":"","url":"https://api.github.com/users/GromNaN","html_url":"https://github.com/GromNaN","followers_url":"https://api.github.com/users/GromNaN/followers","following_url":"https://api.github.com/users/GromNaN/following{/other_user}","gists_url":"https://api.github.com/users/GromNaN/gists{/gist_id}","starred_url":"https://api.github.com/users/GromNaN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GromNaN/subscriptions","organizations_url":"https://api.github.com/users/GromNaN/orgs","repos_url":"https://api.github.com/users/GromNaN/repos","events_url":"https://api.github.com/users/GromNaN/events{/privacy}","received_events_url":"https://api.github.com/users/GromNaN/received_events","type":"User","site_admin":false},"repo":{"id":10675228,"name":"symfony","full_name":"GromNaN/symfony","owner":{"login":"GromNaN","id":400034,"avatar_url":"https://avatars.githubusercontent.com/u/400034?v=3","gravatar_id":"","url":"https://api.github.com/users/GromNaN","html_url":"https://github.com/GromNaN","followers_url":"https://api.github.com/users/GromNaN/followers","following_url":"https://api.github.com/users/GromNaN/following{/other_user}","gists_url":"https://api.github.com/users/GromNaN/gists{/gist_id}","starred_url":"https://api.github.com/users/GromNaN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GromNaN/subscriptions","organizations_url":"https://api.github.com/users/GromNaN/orgs","repos_url":"https://api.github.com/users/GromNaN/repos","events_url":"https://api.github.com/users/GromNaN/events{/privacy}","received_events_url":"https://api.github.com/users/GromNaN/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GromNaN/symfony","description":"The Symfony PHP framework","fork":true,"url":"https://api.github.com/repos/GromNaN/symfony","forks_url":"https://api.github.com/repos/GromNaN/symfony/forks","keys_url":"https://api.github.com/repos/GromNaN/symfony/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GromNaN/symfony/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GromNaN/symfony/teams","hooks_url":"https://api.github.com/repos/GromNaN/symfony/hooks","issue_events_url":"https://api.github.com/repos/GromNaN/symfony/issues/events{/number}","events_url":"https://api.github.com/repos/GromNaN/symfony/events","assignees_url":"https://api.github.com/repos/GromNaN/symfony/assignees{/user}","branches_url":"https://api.github.com/repos/GromNaN/symfony/branches{/branch}","tags_url":"https://api.github.com/repos/GromNaN/symfony/tags","blobs_url":"https://api.github.com/repos/GromNaN/symfony/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GromNaN/symfony/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GromNaN/symfony/git/refs{/sha}","trees_url":"https://api.github.com/repos/GromNaN/symfony/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GromNaN/symfony/statuses/{sha}","languages_url":"https://api.github.com/repos/GromNaN/symfony/languages","stargazers_url":"https://api.github.com/repos/GromNaN/symfony/stargazers","contributors_url":"https://api.github.com/repos/GromNaN/symfony/contributors","subscribers_url":"https://api.github.com/repos/GromNaN/symfony/subscribers","subscription_url":"https://api.github.com/repos/GromNaN/symfony/subscription","commits_url":"https://api.github.com/repos/GromNaN/symfony/commits{/sha}","git_commits_url":"https://api.github.com/repos/GromNaN/symfony/git/commits{/sha}","comments_url":"https://api.github.com/repos/GromNaN/symfony/comments{/number}","issue_comment_url":"https://api.github.com/repos/GromNaN/symfony/issues/comments{/number}","contents_url":"https://api.github.com/repos/GromNaN/symfony/contents/{+path}","compare_url":"https://api.github.com/repos/GromNaN/symfony/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GromNaN/symfony/merges","archive_url":"https://api.github.com/repos/GromNaN/symfony/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GromNaN/symfony/downloads","issues_url":"https://api.github.com/repos/GromNaN/symfony/issues{/number}","pulls_url":"https://api.github.com/repos/GromNaN/symfony/pulls{/number}","milestones_url":"https://api.github.com/repos/GromNaN/symfony/milestones{/number}","notifications_url":"https://api.github.com/repos/GromNaN/symfony/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GromNaN/symfony/labels{/name}","releases_url":"https://api.github.com/repos/GromNaN/symfony/releases{/id}","created_at":"2013-06-13T20:29:27Z","updated_at":"2014-04-11T12:08:00Z","pushed_at":"2015-03-05T22:00:18Z","git_url":"git://github.com/GromNaN/symfony.git","ssh_url":"git@github.com:GromNaN/symfony.git","clone_url":"https://github.com/GromNaN/symfony.git","svn_url":"https://github.com/GromNaN/symfony","homepage":"symfony.com","size":51922,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"symfony:2.7","ref":"2.7","sha":"b001a79210eeac7c17a263d3713ec5c62f931a77","user":{"login":"symfony","id":143937,"avatar_url":"https://avatars.githubusercontent.com/u/143937?v=3","gravatar_id":"","url":"https://api.github.com/users/symfony","html_url":"https://github.com/symfony","followers_url":"https://api.github.com/users/symfony/followers","following_url":"https://api.github.com/users/symfony/following{/other_user}","gists_url":"https://api.github.com/users/symfony/gists{/gist_id}","starred_url":"https://api.github.com/users/symfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symfony/subscriptions","organizations_url":"https://api.github.com/users/symfony/orgs","repos_url":"https://api.github.com/users/symfony/repos","events_url":"https://api.github.com/users/symfony/events{/privacy}","received_events_url":"https://api.github.com/users/symfony/received_events","type":"Organization","site_admin":false},"repo":{"id":458058,"name":"symfony","full_name":"symfony/symfony","owner":{"login":"symfony","id":143937,"avatar_url":"https://avatars.githubusercontent.com/u/143937?v=3","gravatar_id":"","url":"https://api.github.com/users/symfony","html_url":"https://github.com/symfony","followers_url":"https://api.github.com/users/symfony/followers","following_url":"https://api.github.com/users/symfony/following{/other_user}","gists_url":"https://api.github.com/users/symfony/gists{/gist_id}","starred_url":"https://api.github.com/users/symfony/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/symfony/subscriptions","organizations_url":"https://api.github.com/users/symfony/orgs","repos_url":"https://api.github.com/users/symfony/repos","events_url":"https://api.github.com/users/symfony/events{/privacy}","received_events_url":"https://api.github.com/users/symfony/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/symfony/symfony","description":"The Symfony PHP framework","fork":false,"url":"https://api.github.com/repos/symfony/symfony","forks_url":"https://api.github.com/repos/symfony/symfony/forks","keys_url":"https://api.github.com/repos/symfony/symfony/keys{/key_id}","collaborators_url":"https://api.github.com/repos/symfony/symfony/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/symfony/symfony/teams","hooks_url":"https://api.github.com/repos/symfony/symfony/hooks","issue_events_url":"https://api.github.com/repos/symfony/symfony/issues/events{/number}","events_url":"https://api.github.com/repos/symfony/symfony/events","assignees_url":"https://api.github.com/repos/symfony/symfony/assignees{/user}","branches_url":"https://api.github.com/repos/symfony/symfony/branches{/branch}","tags_url":"https://api.github.com/repos/symfony/symfony/tags","blobs_url":"https://api.github.com/repos/symfony/symfony/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/symfony/symfony/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/symfony/symfony/git/refs{/sha}","trees_url":"https://api.github.com/repos/symfony/symfony/git/trees{/sha}","statuses_url":"https://api.github.com/repos/symfony/symfony/statuses/{sha}","languages_url":"https://api.github.com/repos/symfony/symfony/languages","stargazers_url":"https://api.github.com/repos/symfony/symfony/stargazers","contributors_url":"https://api.github.com/repos/symfony/symfony/contributors","subscribers_url":"https://api.github.com/repos/symfony/symfony/subscribers","subscription_url":"https://api.github.com/repos/symfony/symfony/subscription","commits_url":"https://api.github.com/repos/symfony/symfony/commits{/sha}","git_commits_url":"https://api.github.com/repos/symfony/symfony/git/commits{/sha}","comments_url":"https://api.github.com/repos/symfony/symfony/comments{/number}","issue_comment_url":"https://api.github.com/repos/symfony/symfony/issues/comments{/number}","contents_url":"https://api.github.com/repos/symfony/symfony/contents/{+path}","compare_url":"https://api.github.com/repos/symfony/symfony/compare/{base}...{head}","merges_url":"https://api.github.com/repos/symfony/symfony/merges","archive_url":"https://api.github.com/repos/symfony/symfony/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/symfony/symfony/downloads","issues_url":"https://api.github.com/repos/symfony/symfony/issues{/number}","pulls_url":"https://api.github.com/repos/symfony/symfony/pulls{/number}","milestones_url":"https://api.github.com/repos/symfony/symfony/milestones{/number}","notifications_url":"https://api.github.com/repos/symfony/symfony/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/symfony/symfony/labels{/name}","releases_url":"https://api.github.com/repos/symfony/symfony/releases{/id}","created_at":"2010-01-04T14:21:21Z","updated_at":"2015-03-09T07:29:05Z","pushed_at":"2015-03-09T07:29:04Z","git_url":"git://github.com/symfony/symfony.git","ssh_url":"git@github.com:symfony/symfony.git","clone_url":"https://github.com/symfony/symfony.git","svn_url":"https://github.com/symfony/symfony","homepage":"symfony.com","size":207313,"stargazers_count":9798,"watchers_count":9798,"language":"PHP","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":3826,"mirror_url":null,"open_issues_count":752,"forks":3826,"open_issues":752,"watchers":9798,"default_branch":"2.7"}},"_links":{"self":{"href":"https://api.github.com/repos/symfony/symfony/pulls/13855"},"html":{"href":"https://github.com/symfony/symfony/pull/13855"},"issue":{"href":"https://api.github.com/repos/symfony/symfony/issues/13855"},"comments":{"href":"https://api.github.com/repos/symfony/symfony/issues/13855/comments"},"review_comments":{"href":"https://api.github.com/repos/symfony/symfony/pulls/13855/comments"},"review_comment":{"href":"https://api.github.com/repos/symfony/symfony/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/symfony/symfony/pulls/13855/commits"},"statuses":{"href":"https://api.github.com/repos/symfony/symfony/statuses/e41dcb3acdeaca696d1c24834275e4aa07821ed1"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"fabpot","id":47313,"avatar_url":"https://avatars.githubusercontent.com/u/47313?v=3","gravatar_id":"","url":"https://api.github.com/users/fabpot","html_url":"https://github.com/fabpot","followers_url":"https://api.github.com/users/fabpot/followers","following_url":"https://api.github.com/users/fabpot/following{/other_user}","gists_url":"https://api.github.com/users/fabpot/gists{/gist_id}","starred_url":"https://api.github.com/users/fabpot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabpot/subscriptions","organizations_url":"https://api.github.com/users/fabpot/orgs","repos_url":"https://api.github.com/users/fabpot/repos","events_url":"https://api.github.com/users/fabpot/events{/privacy}","received_events_url":"https://api.github.com/users/fabpot/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":1,"additions":11,"deletions":0,"changed_files":1}}