summaryrefslogtreecommitdiffstats
path: root/models/User.php
diff options
context:
space:
mode:
authorMichael Francis <edude03@gmail.com>2011-06-22 15:54:58 -0400
committerMichael Francis <edude03@gmail.com>2011-06-22 15:54:58 -0400
commit076f3449516bd009ae2244fb533ea1a35738bb21 (patch)
tree7a529c1137f05529633925c9f37cd7f74aee8e3c /models/User.php
parent7e47dc47503d504ef4fc77912eb8c74d02b8837c (diff)
downloadotakuhub-076f3449516bd009ae2244fb533ea1a35738bb21.tar.xz
defined mangalist and animelist in the $_Schema (should fix the whitescreen bug when adding an entry to an empty animelist)
Diffstat (limited to 'models/User.php')
-rw-r--r--models/User.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/models/User.php b/models/User.php
index 6ea5323..920c6a7 100644
--- a/models/User.php
+++ b/models/User.php
@@ -11,7 +11,11 @@ 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));
+ 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 static function __init()
{