{"action":"closed","number":655,"pull_request":{"url":"https://api.github.com/repos/phalcon/phalcon-devtools/pulls/655","id":68059837,"html_url":"https://github.com/phalcon/phalcon-devtools/pull/655","diff_url":"https://github.com/phalcon/phalcon-devtools/pull/655.diff","patch_url":"https://github.com/phalcon/phalcon-devtools/pull/655.patch","issue_url":"https://api.github.com/repos/phalcon/phalcon-devtools/issues/655","number":655,"state":"closed","locked":false,"title":"Adjusting modelsDir if used from outside of project dir","user":{"login":"sebbaum","id":6324252,"avatar_url":"https://avatars.githubusercontent.com/u/6324252?v=3","gravatar_id":"","url":"https://api.github.com/users/sebbaum","html_url":"https://github.com/sebbaum","followers_url":"https://api.github.com/users/sebbaum/followers","following_url":"https://api.github.com/users/sebbaum/following{/other_user}","gists_url":"https://api.github.com/users/sebbaum/gists{/gist_id}","starred_url":"https://api.github.com/users/sebbaum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebbaum/subscriptions","organizations_url":"https://api.github.com/users/sebbaum/orgs","repos_url":"https://api.github.com/users/sebbaum/repos","events_url":"https://api.github.com/users/sebbaum/events{/privacy}","received_events_url":"https://api.github.com/users/sebbaum/received_events","type":"User","site_admin":false},"body":"`php vendor/phalcon/devtools/phalcon.php model posts` caused the following error:\r\n```\r\nPHP Warning:  file_put_contents(/var/www/default/../app/models/Posts.php): failed to open stream: No such file or directory in /var/www/default/vendor/phalcon/devtools/scripts/Phalcon/Builder/Model.php on line 526\r\nPHP Stack trace:\r\nPHP   1. {main}() /var/www/default/vendor/phalcon/devtools/phalcon.php:0\r\nPHP   2. Phalcon\\Script->run() /var/www/default/vendor/phalcon/devtools/phalcon.php:86\r\nPHP   3. Phalcon\\Script->dispatch() /var/www/default/vendor/phalcon/devtools/scripts/Phalcon/Script.php:150\r\nPHP   4. Phalcon\\Commands\\Builtin\\Model->run() /var/www/default/vendor/phalcon/devtools/scripts/Phalcon/Script.php:125\r\nPHP   5. Phalcon\\Builder\\Model->build() /var/www/default/vendor/phalcon/devtools/scripts/Phalcon/Commands/Builtin/Model.php:96\r\nPHP   6. file_put_contents() /var/www/default/vendor/phalcon/devtools/scripts/Phalcon/Builder/Model.php:526\r\n\r\n  Error: Unable to write to /var/www/default/../app/models/Posts.php\r\n```\r\nIn `Phalcon\\Build\\Controller.php` this is checked correctly.\r\n\r\nSigned-off-by: Sebastian Baum <sebastian.baum@ion2s.com>","created_at":"2016-04-27T14:10:56Z","updated_at":"2016-04-28T15:28:07Z","closed_at":"2016-04-28T15:28:07Z","merged_at":"2016-04-28T15:28:07Z","merge_commit_sha":"f05772e9fd493c4d2a380f3f26c7fe201f220b83","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/phalcon/phalcon-devtools/pulls/655/commits","review_comments_url":"https://api.github.com/repos/phalcon/phalcon-devtools/pulls/655/comments","review_comment_url":"https://api.github.com/repos/phalcon/phalcon-devtools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/phalcon/phalcon-devtools/issues/655/comments","statuses_url":"https://api.github.com/repos/phalcon/phalcon-devtools/statuses/11598c8be8a12f4f5db54e0f2d3f4f6e8c7491d8","head":{"label":"sebbaum:2.0.x-fix","ref":"2.0.x-fix","sha":"11598c8be8a12f4f5db54e0f2d3f4f6e8c7491d8","user":{"login":"sebbaum","id":6324252,"avatar_url":"https://avatars.githubusercontent.com/u/6324252?v=3","gravatar_id":"","url":"https://api.github.com/users/sebbaum","html_url":"https://github.com/sebbaum","followers_url":"https://api.github.com/users/sebbaum/followers","following_url":"https://api.github.com/users/sebbaum/following{/other_user}","gists_url":"https://api.github.com/users/sebbaum/gists{/gist_id}","starred_url":"https://api.github.com/users/sebbaum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebbaum/subscriptions","organizations_url":"https://api.github.com/users/sebbaum/orgs","repos_url":"https://api.github.com/users/sebbaum/repos","events_url":"https://api.github.com/users/sebbaum/events{/privacy}","received_events_url":"https://api.github.com/users/sebbaum/received_events","type":"User","site_admin":false},"repo":{"id":57215938,"name":"phalcon-devtools","full_name":"sebbaum/phalcon-devtools","owner":{"login":"sebbaum","id":6324252,"avatar_url":"https://avatars.githubusercontent.com/u/6324252?v=3","gravatar_id":"","url":"https://api.github.com/users/sebbaum","html_url":"https://github.com/sebbaum","followers_url":"https://api.github.com/users/sebbaum/followers","following_url":"https://api.github.com/users/sebbaum/following{/other_user}","gists_url":"https://api.github.com/users/sebbaum/gists{/gist_id}","starred_url":"https://api.github.com/users/sebbaum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebbaum/subscriptions","organizations_url":"https://api.github.com/users/sebbaum/orgs","repos_url":"https://api.github.com/users/sebbaum/repos","events_url":"https://api.github.com/users/sebbaum/events{/privacy}","received_events_url":"https://api.github.com/users/sebbaum/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sebbaum/phalcon-devtools","description":"Phalcon Developer Tools","fork":true,"url":"https://api.github.com/repos/sebbaum/phalcon-devtools","forks_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/forks","keys_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/teams","hooks_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/hooks","issue_events_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/issues/events{/number}","events_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/events","assignees_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/assignees{/user}","branches_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/branches{/branch}","tags_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/tags","blobs_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/git/refs{/sha}","trees_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/statuses/{sha}","languages_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/languages","stargazers_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/stargazers","contributors_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/contributors","subscribers_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/subscribers","subscription_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/subscription","commits_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/commits{/sha}","git_commits_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/git/commits{/sha}","comments_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/comments{/number}","issue_comment_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/issues/comments{/number}","contents_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/contents/{+path}","compare_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/merges","archive_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/downloads","issues_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/issues{/number}","pulls_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/pulls{/number}","milestones_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/milestones{/number}","notifications_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/labels{/name}","releases_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/releases{/id}","deployments_url":"https://api.github.com/repos/sebbaum/phalcon-devtools/deployments","created_at":"2016-04-27T13:35:27Z","updated_at":"2016-04-27T13:35:37Z","pushed_at":"2016-04-28T13:52:20Z","git_url":"git://github.com/sebbaum/phalcon-devtools.git","ssh_url":"git@github.com:sebbaum/phalcon-devtools.git","clone_url":"https://github.com/sebbaum/phalcon-devtools.git","svn_url":"https://github.com/sebbaum/phalcon-devtools","homepage":"hthttp://phalconphp.com/documentation/tools","size":5085,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"phalcon:2.0.x","ref":"2.0.x","sha":"5b489fc7592ebf8108185172d45ea6c775b45d76","user":{"login":"phalcon","id":1221505,"avatar_url":"https://avatars.githubusercontent.com/u/1221505?v=3","gravatar_id":"","url":"https://api.github.com/users/phalcon","html_url":"https://github.com/phalcon","followers_url":"https://api.github.com/users/phalcon/followers","following_url":"https://api.github.com/users/phalcon/following{/other_user}","gists_url":"https://api.github.com/users/phalcon/gists{/gist_id}","starred_url":"https://api.github.com/users/phalcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phalcon/subscriptions","organizations_url":"https://api.github.com/users/phalcon/orgs","repos_url":"https://api.github.com/users/phalcon/repos","events_url":"https://api.github.com/users/phalcon/events{/privacy}","received_events_url":"https://api.github.com/users/phalcon/received_events","type":"User","site_admin":false},"repo":{"id":3783584,"name":"phalcon-devtools","full_name":"phalcon/phalcon-devtools","owner":{"login":"phalcon","id":1221505,"avatar_url":"https://avatars.githubusercontent.com/u/1221505?v=3","gravatar_id":"","url":"https://api.github.com/users/phalcon","html_url":"https://github.com/phalcon","followers_url":"https://api.github.com/users/phalcon/followers","following_url":"https://api.github.com/users/phalcon/following{/other_user}","gists_url":"https://api.github.com/users/phalcon/gists{/gist_id}","starred_url":"https://api.github.com/users/phalcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phalcon/subscriptions","organizations_url":"https://api.github.com/users/phalcon/orgs","repos_url":"https://api.github.com/users/phalcon/repos","events_url":"https://api.github.com/users/phalcon/events{/privacy}","received_events_url":"https://api.github.com/users/phalcon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/phalcon/phalcon-devtools","description":"Phalcon Developer Tools","fork":false,"url":"https://api.github.com/repos/phalcon/phalcon-devtools","forks_url":"https://api.github.com/repos/phalcon/phalcon-devtools/forks","keys_url":"https://api.github.com/repos/phalcon/phalcon-devtools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phalcon/phalcon-devtools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phalcon/phalcon-devtools/teams","hooks_url":"https://api.github.com/repos/phalcon/phalcon-devtools/hooks","issue_events_url":"https://api.github.com/repos/phalcon/phalcon-devtools/issues/events{/number}","events_url":"https://api.github.com/repos/phalcon/phalcon-devtools/events","assignees_url":"https://api.github.com/repos/phalcon/phalcon-devtools/assignees{/user}","branches_url":"https://api.github.com/repos/phalcon/phalcon-devtools/branches{/branch}","tags_url":"https://api.github.com/repos/phalcon/phalcon-devtools/tags","blobs_url":"https://api.github.com/repos/phalcon/phalcon-devtools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phalcon/phalcon-devtools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phalcon/phalcon-devtools/git/refs{/sha}","trees_url":"https://api.github.com/repos/phalcon/phalcon-devtools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phalcon/phalcon-devtools/statuses/{sha}","languages_url":"https://api.github.com/repos/phalcon/phalcon-devtools/languages","stargazers_url":"https://api.github.com/repos/phalcon/phalcon-devtools/stargazers","contributors_url":"https://api.github.com/repos/phalcon/phalcon-devtools/contributors","subscribers_url":"https://api.github.com/repos/phalcon/phalcon-devtools/subscribers","subscription_url":"https://api.github.com/repos/phalcon/phalcon-devtools/subscription","commits_url":"https://api.github.com/repos/phalcon/phalcon-devtools/commits{/sha}","git_commits_url":"https://api.github.com/repos/phalcon/phalcon-devtools/git/commits{/sha}","comments_url":"https://api.github.com/repos/phalcon/phalcon-devtools/comments{/number}","issue_comment_url":"https://api.github.com/repos/phalcon/phalcon-devtools/issues/comments{/number}","contents_url":"https://api.github.com/repos/phalcon/phalcon-devtools/contents/{+path}","compare_url":"https://api.github.com/repos/phalcon/phalcon-devtools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phalcon/phalcon-devtools/merges","archive_url":"https://api.github.com/repos/phalcon/phalcon-devtools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phalcon/phalcon-devtools/downloads","issues_url":"https://api.github.com/repos/phalcon/phalcon-devtools/issues{/number}","pulls_url":"https://api.github.com/repos/phalcon/phalcon-devtools/pulls{/number}","milestones_url":"https://api.github.com/repos/phalcon/phalcon-devtools/milestones{/number}","notifications_url":"https://api.github.com/repos/phalcon/phalcon-devtools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phalcon/phalcon-devtools/labels{/name}","releases_url":"https://api.github.com/repos/phalcon/phalcon-devtools/releases{/id}","deployments_url":"https://api.github.com/repos/phalcon/phalcon-devtools/deployments","created_at":"2012-03-21T05:18:46Z","updated_at":"2016-04-26T12:30:33Z","pushed_at":"2016-04-28T15:28:07Z","git_url":"git://github.com/phalcon/phalcon-devtools.git","ssh_url":"git@github.com:phalcon/phalcon-devtools.git","clone_url":"https://github.com/phalcon/phalcon-devtools.git","svn_url":"https://github.com/phalcon/phalcon-devtools","homepage":"hthttp://phalconphp.com/documentation/tools","size":6348,"stargazers_count":677,"watchers_count":677,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":457,"mirror_url":null,"open_issues_count":48,"forks":457,"open_issues":48,"watchers":677,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/phalcon/phalcon-devtools/pulls/655"},"html":{"href":"https://github.com/phalcon/phalcon-devtools/pull/655"},"issue":{"href":"https://api.github.com/repos/phalcon/phalcon-devtools/issues/655"},"comments":{"href":"https://api.github.com/repos/phalcon/phalcon-devtools/issues/655/comments"},"review_comments":{"href":"https://api.github.com/repos/phalcon/phalcon-devtools/pulls/655/comments"},"review_comment":{"href":"https://api.github.com/repos/phalcon/phalcon-devtools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/phalcon/phalcon-devtools/pulls/655/commits"},"statuses":{"href":"https://api.github.com/repos/phalcon/phalcon-devtools/statuses/11598c8be8a12f4f5db54e0f2d3f4f6e8c7491d8"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"sergeyklay","id":1256298,"avatar_url":"https://avatars.githubusercontent.com/u/1256298?v=3","gravatar_id":"","url":"https://api.github.com/users/sergeyklay","html_url":"https://github.com/sergeyklay","followers_url":"https://api.github.com/users/sergeyklay/followers","following_url":"https://api.github.com/users/sergeyklay/following{/other_user}","gists_url":"https://api.github.com/users/sergeyklay/gists{/gist_id}","starred_url":"https://api.github.com/users/sergeyklay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sergeyklay/subscriptions","organizations_url":"https://api.github.com/users/sergeyklay/orgs","repos_url":"https://api.github.com/users/sergeyklay/repos","events_url":"https://api.github.com/users/sergeyklay/events{/privacy}","received_events_url":"https://api.github.com/users/sergeyklay/received_events","type":"User","site_admin":false},"comments":3,"review_comments":0,"commits":1,"additions":5,"deletions":0,"changed_files":1}}