Author: rick
Date: 2010-03-17 17:29:17 +0100 (Wed, 17 Mar 2010)
New Revision: 28579

Modified:
   plugins/sfCouchPlugin/trunk/lib/sfCouchDocument.class.php
   plugins/sfCouchPlugin/trunk/lib/sfCouchResponse.class.php
Log:


Modified: plugins/sfCouchPlugin/trunk/lib/sfCouchDocument.class.php
===================================================================
--- plugins/sfCouchPlugin/trunk/lib/sfCouchDocument.class.php   2010-03-17 
15:48:30 UTC (rev 28578)
+++ plugins/sfCouchPlugin/trunk/lib/sfCouchDocument.class.php   2010-03-17 
16:29:17 UTC (rev 28579)
@@ -95,6 +95,16 @@
     {
         return $this->storage->$property;
     }
+    
+    /**
+     * Is this a ne document?
+     *
+     * @return boolean
+     */
+    public function isNew()
+    {
+        return $this->newDocument;
+    }
 
     /**
      * Set a property value

Modified: plugins/sfCouchPlugin/trunk/lib/sfCouchResponse.class.php
===================================================================
--- plugins/sfCouchPlugin/trunk/lib/sfCouchResponse.class.php   2010-03-17 
15:48:30 UTC (rev 28578)
+++ plugins/sfCouchPlugin/trunk/lib/sfCouchResponse.class.php   2010-03-17 
16:29:17 UTC (rev 28579)
@@ -146,7 +146,7 @@
                 // All other unhandled HTTP codes are for now handled as an 
error.
                 // This may not be true, as lots of other status code may be 
used
                 // for valid repsonses.
-                throw new sfException( $headers['status'] );
+                throw new sfException( $response['error']  . ': ' . 
$response['reason']);
         }
     }
 }
\ No newline at end of file

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to