From fbb54f58addf67300191eade2b9cdc10fba05e69 Mon Sep 17 00:00:00 2001 From: Michael Francis Date: Sun, 29 May 2011 16:49:40 -0400 Subject: Documentation --- models/Post.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'models') 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())); -- cgit v1.2.3