summaryrefslogtreecommitdiffstats
path: root/models/Post.php
diff options
context:
space:
mode:
Diffstat (limited to 'models/Post.php')
-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