summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorMichael Francis <edude03@gmail.com>2011-07-10 22:07:47 -0400
committerMichael Francis <edude03@gmail.com>2011-07-10 22:07:47 -0400
commiteaa0bfb68939734c42fde8c61ac399e2cc1e016a (patch)
tree4b88e6c739d7fbe6e5e93133fae87bc68211ae25 /models
parent6e9d03ee45d0980c6730233547d7d508f084bd15 (diff)
downloadotakuhub-eaa0bfb68939734c42fde8c61ac399e2cc1e016a.tar.xz
Implementing relationships
Diffstat (limited to 'models')
-rw-r--r--models/Post.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/models/Post.php b/models/Post.php
index bb3abd7..411d2a0 100644
--- a/models/Post.php
+++ b/models/Post.php
@@ -4,9 +4,8 @@ namespace app\models;
use app\models\User;
class Post extends \lithium\data\Model {
- protected $_meta = array('key' => '_id');
-//Overrides save so we can do some stuff before the data is commited to the database.
+ public $belongsTo = array('User');
/* Post model $_Schema:
* _id => MongoID