]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
pkeyGet() method for Forward and return value from saveNew()
authorEvan Prodromou <evan@status.net>
Tue, 8 Dec 2009 22:20:04 +0000 (17:20 -0500)
committerEvan Prodromou <evan@status.net>
Tue, 8 Dec 2009 22:20:04 +0000 (17:20 -0500)
classes/Forward.php

index 6d4848438cf36c2feaf6b24d7f65e475fbe8125d..52ec5387155d8ea88b2719d32b9fd0a1144cd33c 100644 (file)
@@ -43,6 +43,11 @@ class Forward extends Memcached_DataObject
     /* the code above is auto generated do not remove the tag below */
     ###END_AUTOCODE
 
+    function &pkeyGet($kv)
+    {
+        return Memcached_DataObject::pkeyGet('Forward', $kv);
+    }
+
     static function saveNew($profile_id, $notice_id)
     {
         $forward = new Forward();
@@ -62,6 +67,8 @@ class Forward extends Memcached_DataObject
         $forward->query('COMMIT');
 
         $forward->blowCache($ni);
+
+        return $forward;
     }
 
     function addToInboxes()