Explorar o código

Implementing relationships

Michael Francis %!s(int64=14) %!d(string=hai) anos
pai
achega
9153773427
Modificáronse 1 ficheiros con 2 adicións e 7 borrados
  1. 2 7
      models/User.php

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