Blame | Last modification | View Log | RSS feed
<?phpApp::uses('AppModel', 'Model');/*** Agent Model** @property Call $Call* @property PlayStoreLink $PlayStoreLink*/class Agent extends AppModel {/*** Display field** @var string*/public $displayField = 'name';/*** Validation rules** @var array*/public $validate = array('name' => array('notEmpty' => array('rule' => array('notEmpty'),//'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),),'email' => array('email' => array('rule' => array('email'),//'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),),'password' => array('notEmpty' => array('rule' => array('notEmpty'),//'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/*** hasMany associations** @var array*/public $hasMany = array('Call' => array('className' => 'Call','foreignKey' => 'agent_id','dependent' => false,'conditions' => '','fields' => '','order' => '','limit' => '','offset' => '','exclusive' => '','finderQuery' => '','counterQuery' => ''),'AgentRole' => array('className' => 'AgentRole','foreignKey' => 'agent_id','dependent' => false,'conditions' => '','fields' => '','order' => '','limit' => '','offset' => '','exclusive' => '','finderQuery' => '','counterQuery' => ''),'PlayStoreLink' => array('className' => 'PlayStoreLink','foreignKey' => 'agent_id','dependent' => false,'conditions' => '','fields' => '','order' => '','limit' => '','offset' => '','exclusive' => '','finderQuery' => '','counterQuery' => ''));}