Эх сурвалжийг харах

defined mangalist and animelist in the $_Schema (should fix the whitescreen bug when adding an entry to an empty animelist)

Michael Francis 14 жил өмнө
parent
commit
076f344951
1 өөрчлөгдсөн 5 нэмэгдсэн , 1 устгасан
  1. 5 1
      models/User.php

+ 5 - 1
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()
 	{