Blame | Last modification | View Log | RSS feed
<?phpApp::uses('AppModel', 'Model');/*** Call Model** @property Retailer $Retailer* @property Agent $Agent* @property PlayStoreLink $PlayStoreLink*/class Call extends AppModel {/*** Display field** @var string*/public $displayField = 'id';/*** Validation rules** @var array*/public $validate = array('retailer_id' => array('numeric' => array('rule' => array('numeric'),//'message' => 'Your custom message here',//'allowEmpty' => false,//'required' => false,//'last' => false, // Stop validation after this rule//'on' => 'create', // Limit validation to 'create' or 'update' operations),),'agent_id' => array('numeric' => array('rule' => array('numeric'),//'message' => 'Your custom message here',//'allowEmpty' => false,//'required' => false,//'last' => false, // Stop validation after this rule//'on' => 'create', // Limit validation to 'create' or 'update' operations),),);//The Associations below have been created with all possible keys, those that are not needed can be removed/*** belongsTo associations** @var array*/public $belongsTo = array('Retailer' => array('className' => 'Retailer','foreignKey' => 'retailer_id','conditions' => '','fields' => '','order' => ''),'Agent' => array('className' => 'Agent','foreignKey' => 'agent_id','conditions' => '','fields' => '','order' => ''));/*** hasMany associations** @var array*/public $hasMany = array('PlayStoreLink' => array('className' => 'PlayStoreLink','foreignKey' => 'call_id','dependent' => false,'conditions' => '','fields' => '','order' => '','limit' => '','offset' => '','exclusive' => '','finderQuery' => '','counterQuery' => ''));}