2014-11-25 19:50:56 +01:00
|
|
|
<?php
|
|
|
|
App::uses('AppModel', 'Model');
|
|
|
|
/**
|
|
|
|
*/
|
|
|
|
class DreamjobCompanyPro extends AppModel {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Use database config
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $useDbConfig = 'dreamjobMain';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Use table
|
|
|
|
*
|
|
|
|
* @var mixed False or table name
|
|
|
|
*/
|
|
|
|
public $useTable = 'mic_dj_account_cmpy_pro';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Display field
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
public $displayField = 'company_id';
|
|
|
|
/**
|
|
|
|
* Validation rules
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
*/
|
|
|
|
public $validate = array(
|
|
|
|
);
|
2015-03-31 13:48:14 +02:00
|
|
|
|
|
|
|
|
2014-11-25 19:50:56 +01:00
|
|
|
public $hasOne = array(
|
|
|
|
'DreamjobCompany' => array(
|
|
|
|
'className' => 'DreamjobCompany',
|
|
|
|
'foreignKey' => 'djaccount_ptr_id'
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|