summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorMichael Francis <edude03@gmail.com>2011-05-29 16:49:40 -0400
committerMichael Francis <edude03@gmail.com>2011-05-29 16:49:40 -0400
commitfbb54f58addf67300191eade2b9cdc10fba05e69 (patch)
treeb924109ad402219023a9bd0eb586efce42c59857 /models
parentb1629b5d2fbe13717fcf32fc83f40ea2e85f572f (diff)
downloadotakuhub-fbb54f58addf67300191eade2b9cdc10fba05e69.tar.xz
Documentation
Diffstat (limited to 'models')
-rw-r--r--models/Post.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/models/Post.php b/models/Post.php
index 653beb2..58e2487 100644
--- a/models/Post.php
+++ b/models/Post.php
@@ -124,6 +124,11 @@ class Post extends \lithium\data\Model {
return $result;
}
+ /**
+ * Stores the post to the database
+ * @param Post $entity The post to store.
+ * @param User $user The user to store the post to.
+ */
public function store($entity, $user)
{
$updateData = array('$push' => array('feed' => $entity['_id']->__toString()));