summaryrefslogtreecommitdiffstats
path: root/models/Post.php
diff options
context:
space:
mode:
authorMichael Francis <edude03@gmail.com>2011-07-17 10:59:33 -0400
committerMichael Francis <edude03@gmail.com>2011-07-17 10:59:33 -0400
commit7be960630a8c0b4dab94245c73453b22db3f305e (patch)
tree939fcb63c6af071d62ccc86c1343d24687fd7897 /models/Post.php
parent5cc64bc633e8ff287cf7bb16ab1a8b8d2afb29b3 (diff)
downloadotakuhub-7be960630a8c0b4dab94245c73453b22db3f305e.tar.xz
Removed old comment
Diffstat (limited to 'models/Post.php')
-rw-r--r--models/Post.php12
1 files changed, 1 insertions, 11 deletions
diff --git a/models/Post.php b/models/Post.php
index 5a8bab0..6ce21e2 100644
--- a/models/Post.php
+++ b/models/Post.php
@@ -5,17 +5,7 @@ use app\models\User;
class Post extends \lithium\data\Model {
- public $belongsTo = array('User');
-
-/* Post model $_Schema:
- * _id => MongoID
- * user_id -> mongoID of the user that posted it
- * datetime -> mongodate of when the post was posted
- * body -> the text of the post
- * level -> access level required to see the post
- * comments[] => list of comments
- * type -> the type of post, IE picture text, chat etc
- */
+ public $belongsTo = array('User', 'Friends' => array('keys' => array('ToUserId' => 'id')));
/**
* Parses an array of words to find mentions and topic tags then converts them