diff options
author | Michael Francis <edude03@gmail.com> | 2011-07-10 22:07:47 -0400 |
---|---|---|
committer | Michael Francis <edude03@gmail.com> | 2011-07-10 22:07:47 -0400 |
commit | eaa0bfb68939734c42fde8c61ac399e2cc1e016a (patch) | |
tree | 4b88e6c739d7fbe6e5e93133fae87bc68211ae25 | |
parent | 6e9d03ee45d0980c6730233547d7d508f084bd15 (diff) | |
download | otakuhub-eaa0bfb68939734c42fde8c61ac399e2cc1e016a.tar.xz |
Implementing relationships
-rw-r--r-- | models/Post.php | 3 |
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 |