From eaa0bfb68939734c42fde8c61ac399e2cc1e016a Mon Sep 17 00:00:00 2001 From: Michael Francis Date: Sun, 10 Jul 2011 22:07:47 -0400 Subject: Implementing relationships --- models/Post.php | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3