Subversion Repositories SmartDukaan

Rev

Rev 15378 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 15378 Rev 15767
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
/*
-
 
64
	public $hasMany = array(
-
 
65
		'Order' => array(
-
 
66
			'className' => 'Order',
-
 
67
			'foreignKey' => 'store_id',
-
 
68
			'dependent' => false,
-
 
69
			'conditions' => '',
-
 
70
			'fields' => '',
-
 
71
			'order' => '',
-
 
72
			'limit' => '',
-
 
73
			'offset' => '',
-
 
74
			'exclusive' => '',
-
 
75
			'finderQuery' => '',
-
 
76
			'counterQuery' => ''
-
 
77
		),
-
 
78
		'StoreProduct' => array(
-
 
79
			'className' => 'StoreProduct',
-
 
80
			'foreignKey' => 'store_id',
-
 
81
			'dependent' => false,
-
 
82
			'conditions' => '',
-
 
83
			'fields' => '',
-
 
84
			'order' => '',
-
 
85
			'limit' => '',
-
 
86
			'offset' => '',
-
 
87
			'exclusive' => '',
-
 
88
			'finderQuery' => '',
-
 
89
			'counterQuery' => ''
-
 
90
		)
-
 
91
	);
-
 
92
*/
58
	public function getByUrl($url) {
93
	public function getByUrl($url) {
59
		$domain = $this->get_domain($url);
94
		$domain = $this->get_domain($url);
60
		$this->recursive = -1;
95
		$this->recursive = -1;
61
		return $this->findByDomain($domain);
96
		return $this->findByDomain($domain);
62
	}
97
	}