|
@@ -124,6 +124,11 @@ class Post extends \lithium\data\Model {
|
|
|
return $result;
|
|
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)
|
|
public function store($entity, $user)
|
|
|
{
|
|
{
|
|
|
$updateData = array('$push' => array('feed' => $entity['_id']->__toString()));
|
|
$updateData = array('$push' => array('feed' => $entity['_id']->__toString()));
|