summaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorMichael Francis <edude03@gmail.com>2011-07-10 22:09:05 -0400
committerMichael Francis <edude03@gmail.com>2011-07-10 22:09:05 -0400
commit9153773427a3194c19879d14a4297096ee6f9176 (patch)
tree2e2cf836203785c98dc448db6650182e29c0ebee /models
parenta809dd485c73b55646a6b915527da99da14fb869 (diff)
downloadotakuhub-9153773427a3194c19879d14a4297096ee6f9176.tar.xz
Implementing relationships
Diffstat (limited to 'models')
-rw-r--r--models/User.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/models/User.php b/models/User.php
index a1c8f8d..6408f1c 100644
--- a/models/User.php
+++ b/models/User.php
@@ -9,13 +9,8 @@ use \App\Libraries\openID\LightOpenID;
use \lithium\security\Password;
class User extends \lithium\data\Model {
- //To bypass mongo bug
- //protected $_meta = array('key' => '_id');
- /*protected $_schema = array('_id' => array('type' => 'id'),
- 'feed' => array('type'=>'string', 'array' => true),
- 'animelist' => array('type' => 'object', 'array' => true),
- 'mangalist' => array('type' => 'object', 'array' => true)
- );*/
+
+ public $hasMany = array('Post');
public static function __init()
{