Selaa lähdekoodia

Documentation

Michael Francis 14 vuotta sitten
vanhempi
commit
fbb54f58ad
2 muutettua tiedostoa jossa 5 lisäystä ja 0 poistoa
  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()));

BIN
views/.DS_Store