{"action":"opened","number":12,"pull_request":{"review_comments":0,"created_at":"2011-11-22T08:24:27Z","state":"open","updated_at":"2011-11-22T08:24:27Z","patch_url":"https://github.com/alkemann/CakePHP-Assets/pull/12.patch","changed_files":1,"_links":{"review_comments":{"href":"https://api.github.com/repos/alkemann/CakePHP-Assets/pulls/12/comments"},"comments":{"href":"https://api.github.com/repos/alkemann/CakePHP-Assets/issues/12/comments"},"html":{"href":"https://github.com/alkemann/CakePHP-Assets/pull/12"},"self":{"href":"https://api.github.com/repos/alkemann/CakePHP-Assets/pulls/12"}},"user":{"gravatar_id":"9870a37447a4ae811096e8e7d10ed3f9","id":158674,"url":"https://api.github.com/users/joni","login":"joni","avatar_url":"https://secure.gravatar.com/avatar/9870a37447a4ae811096e8e7d10ed3f9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"comments":0,"issue_url":"https://github.com/alkemann/CakePHP-Assets/issues/12","merged":false,"deletions":0,"body":"Hi,\r\nThere's a problem with the revertToDate function: it fails when a revisioned model is associated with models that are not. Checking if the associated model has a ShadowModel before trying to use it fixes the problem.\r\n\r\nI've been using the revision behaviour for a long time--solid work!--but yesterday was the first time I had to use the revertToDate function since someone accidentally deleted important data.\r\n\r\nRegards,\r\nJoni","commits":2,"mergeable":null,"id":517687,"base":{"repo":{"created_at":"2009-10-17T10:38:25Z","pushed_at":"2011-10-18T08:26:14Z","clone_url":"https://github.com/alkemann/CakePHP-Assets.git","private":false,"updated_at":"2011-11-22T07:39:54Z","name":"CakePHP-Assets","watchers":70,"svn_url":"https://svn.github.com/alkemann/CakePHP-Assets","master_branch":null,"forks":20,"language":"PHP","owner":{"gravatar_id":"c85d1e6f24196d72d95c07aea936f778","id":48854,"url":"https://api.github.com/users/alkemann","login":"alkemann","avatar_url":"https://secure.gravatar.com/avatar/c85d1e6f24196d72d95c07aea936f778?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":340361,"homepage":"","description":"A home for  the cakephp assets managed the development of.","git_url":"git://github.com/alkemann/CakePHP-Assets.git","html_url":"https://github.com/alkemann/CakePHP-Assets","open_issues":4,"url":"https://api.github.com/repos/alkemann/CakePHP-Assets","size":1027,"fork":false,"ssh_url":"git@github.com:alkemann/CakePHP-Assets.git"},"user":{"gravatar_id":"c85d1e6f24196d72d95c07aea936f778","id":48854,"url":"https://api.github.com/users/alkemann","login":"alkemann","avatar_url":"https://secure.gravatar.com/avatar/c85d1e6f24196d72d95c07aea936f778?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"sha":"4d14a5ac5f4833413ced99690242e665a7ffe2cf","ref":"master","label":"alkemann:master"},"additions":6,"number":12,"merged_by":null,"title":"RevisionBehaviour.revertToDate: Check if an associated model has a shadow before trying to use it","head":{"repo":{"created_at":"2011-11-22T07:39:54Z","pushed_at":"2011-11-22T08:12:42Z","clone_url":"https://github.com/joni/CakePHP-Assets.git","private":false,"updated_at":"2011-11-22T08:12:42Z","name":"CakePHP-Assets","watchers":1,"svn_url":"https://svn.github.com/joni/CakePHP-Assets","master_branch":null,"forks":0,"language":"PHP","owner":{"gravatar_id":"9870a37447a4ae811096e8e7d10ed3f9","id":158674,"url":"https://api.github.com/users/joni","login":"joni","avatar_url":"https://secure.gravatar.com/avatar/9870a37447a4ae811096e8e7d10ed3f9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"id":2826139,"homepage":"","description":"A home for  the cakephp assets managed the development of.","git_url":"git://github.com/joni/CakePHP-Assets.git","html_url":"https://github.com/joni/CakePHP-Assets","open_issues":0,"url":"https://api.github.com/repos/joni/CakePHP-Assets","size":128,"fork":true,"ssh_url":"git@github.com:joni/CakePHP-Assets.git"},"user":{"gravatar_id":"9870a37447a4ae811096e8e7d10ed3f9","id":158674,"url":"https://api.github.com/users/joni","login":"joni","avatar_url":"https://secure.gravatar.com/avatar/9870a37447a4ae811096e8e7d10ed3f9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"sha":"7f92cd4678885807fee29a57b2eb9a021a7781ef","ref":"master","label":"joni:master"},"closed_at":null,"html_url":"https://github.com/alkemann/CakePHP-Assets/pull/12","url":"https://api.github.com/repos/alkemann/CakePHP-Assets/pulls/12","diff_url":"https://github.com/alkemann/CakePHP-Assets/pull/12.diff","merged_at":null}}