Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
15537 manas 1
<?php
2
App::uses('AppModel', 'Model');
3
/**
4
 * Callhistory Model
5
 *
6
 * @property Retailer $Retailer
7
 * @property Agent $Agent
8
 */
9
class Callhistory extends AppModel {
10
 
11
/**
12
 * Use table
13
 *
14
 * @var mixed False or table name
15
 */
16
	public $useTable = 'callhistory';
17
 
18
/**
19
 * Display field
20
 *
21
 * @var string
22
 */
23
	public $displayField = 'id';
24
 
25
 
26
	//The Associations below have been created with all possible keys, those that are not needed can be removed
27
 
28
/**
29
 * belongsTo associations
30
 *
31
 * @var array
32
 */
33
	public $belongsTo = array(
34
		'Retailer' => array(
35
			'className' => 'Retailer',
36
			'foreignKey' => 'retailer_id',
37
			'conditions' => '',
38
			'fields' => '',
39
			'order' => ''
40
		),
41
		'Agent' => array(
42
			'className' => 'Agent',
43
			'foreignKey' => 'agent_id',
44
			'conditions' => '',
45
			'fields' => '',
46
			'order' => ''
47
		)
48
	);
49
}