Michael Francis пре 14 година
родитељ
комит
fbb54f58ad
2 измењених фајлова са 5 додато и 0 уклоњено
  1. 5 0
      models/Post.php
  2. BIN
      views/.DS_Store

+ 5 - 0
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()));