Subversion Repositories SmartDukaan

Rev

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

Rev 14445 Rev 15378
Line 53... Line 53...
53
		),
53
		),
54
	);
54
	);
55
 
55
 
56
	//The Associations below have been created with all possible keys, those that are not needed can be removed
56
	//The Associations below have been created with all possible keys, those that are not needed can be removed
57
 
57
 
58
/**
-
 
59
 * hasMany associations
-
 
60
 *
-
 
61
 * @var array
-
 
62
 */
-
 
63
	public $hasMany = array(
-
 
64
		'Order' => array(
-
 
65
			'className' => 'Order',
-
 
66
			'foreignKey' => 'store_id',
-
 
67
			'dependent' => false,
-
 
68
			'conditions' => '',
-
 
69
			'fields' => '',
-
 
70
			'order' => '',
-
 
71
			'limit' => '',
-
 
72
			'offset' => '',
-
 
73
			'exclusive' => '',
-
 
74
			'finderQuery' => '',
-
 
75
			'counterQuery' => ''
-
 
76
		),
-
 
77
		'StoreProduct' => array(
-
 
78
			'className' => 'StoreProduct',
-
 
79
			'foreignKey' => 'store_id',
-
 
80
			'dependent' => false,
-
 
81
			'conditions' => '',
-
 
82
			'fields' => '',
-
 
83
			'order' => '',
-
 
84
			'limit' => '',
-
 
85
			'offset' => '',
-
 
86
			'exclusive' => '',
-
 
87
			'finderQuery' => '',
-
 
88
			'counterQuery' => ''
-
 
89
		)
-
 
90
	);
-
 
91
 
-
 
92
	public function getByUrl($url) {
58
	public function getByUrl($url) {
93
		$domain = $this->get_domain($url);
59
		$domain = $this->get_domain($url);
94
		$this->recursive = -1;
60
		$this->recursive = -1;
95
		return $this->findByDomain($domain);
61
		return $this->findByDomain($domain);
96
	}
62
	}