Subversion Repositories SmartDukaan

Rev

Rev 13532 | Rev 13714 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13532 Rev 13695
Line 82... Line 82...
82
			'fields' => '',
82
			'fields' => '',
83
			'order' => ''
83
			'order' => ''
84
		)
84
		)
85
	);
85
	);
86
 
86
 
-
 
87
	public $hasMany = array(
-
 
88
		'PricePreference' => array(
-
 
89
			'className' => 'PricePreference',
-
 
90
			'foreignKey' => 'user_id',
-
 
91
			'dependent' => false,
-
 
92
			'conditions' => '',
-
 
93
			'fields' => '',
-
 
94
			'order' => '',
-
 
95
			'limit' => '',
-
 
96
			'offset' => '',
-
 
97
			'exclusive' => '',
-
 
98
			'finderQuery' => '',
-
 
99
			'counterQuery' => ''
-
 
100
		),
-
 
101
		'BrandPreference' => array(
-
 
102
			'className' => 'BrandPreference',
-
 
103
			'foreignKey' => 'user_id',
-
 
104
			'dependent' => false,
-
 
105
			'conditions' => '',
-
 
106
			'fields' => '',
-
 
107
			'order' => '',
-
 
108
			'limit' => '',
-
 
109
			'offset' => '',
-
 
110
			'exclusive' => '',
-
 
111
			'finderQuery' => '',
-
 
112
			'counterQuery' => ''
-
 
113
		)
-
 
114
	);
87
	//The Associations below have been created with all possible keys, those that are not needed can be removed
115
	//The Associations below have been created with all possible keys, those that are not needed can be removed
88
 
116
 
89
	public function checkFbUser($user,$access_token){
117
	public function checkFbUser($user,$access_token){
90
		if(!empty($user->email)) {
118
		if(!empty($user->email)) {
91
			$conditions = array('User.email' => $user->email);
119
			$conditions = array('User.email' => $user->email);