applicationList
This commit is contained in:
parent
4dbf6e5967
commit
74df21e5b6
|
@ -129,11 +129,11 @@ class DreamjobJobApplication extends AppModel {
|
||||||
'className' => 'DreamjobWorker',
|
'className' => 'DreamjobWorker',
|
||||||
'foreignKey' => 'worker_id'
|
'foreignKey' => 'worker_id'
|
||||||
),
|
),
|
||||||
'DreamjobUser' => array(
|
'DreamjobUserWorker' => array(
|
||||||
'className' => 'DreamjobUser',
|
'className' => 'DreamjobUser',
|
||||||
'foreignKey' => 'worker_id'
|
'foreignKey' => 'worker_id'
|
||||||
),
|
),
|
||||||
'AppUser' => array(
|
'AppUserWorker' => array(
|
||||||
'className' => 'AppUser',
|
'className' => 'AppUser',
|
||||||
'foreignKey' => 'worker_id'
|
'foreignKey' => 'worker_id'
|
||||||
),
|
),
|
||||||
|
@ -145,17 +145,29 @@ class DreamjobJobApplication extends AppModel {
|
||||||
|
|
||||||
|
|
||||||
public $hasOne = array(
|
public $hasOne = array(
|
||||||
'User' => array(
|
|
||||||
'className' => 'User',
|
|
||||||
'foreignKey' => false,
|
|
||||||
'conditions' => array('DreamjobJobOpening.company_id = AppUser.id and User.id = AppUser.user_id'),
|
|
||||||
'limit' => 1
|
|
||||||
),
|
|
||||||
'DreamjobCompany' => array(
|
'DreamjobCompany' => array(
|
||||||
'className' => 'DreamjobCompany',
|
'className' => 'DreamjobCompany',
|
||||||
'foreignKey' => false,
|
'foreignKey' => false,
|
||||||
'conditions' => array('DreamjobJobOpening.company_id = DreamjobCompany.djaccount_ptr_id'),
|
'conditions' => array('DreamjobJobOpening.company_id = DreamjobCompany.djaccount_ptr_id'),
|
||||||
'limit' => 1
|
'limit' => 1
|
||||||
|
),
|
||||||
|
'DreamjobUser' => array(
|
||||||
|
'className' => 'DreamjobUser',
|
||||||
|
'foreignKey' => false,
|
||||||
|
'conditions' => array('DreamjobJobOpening.company_id = DreamjobUser.micapplication_ptr_id'),
|
||||||
|
'limit' => 1
|
||||||
|
),
|
||||||
|
'AppUser' => array(
|
||||||
|
'className' => 'AppUser',
|
||||||
|
'foreignKey' => false,
|
||||||
|
'conditions' => array('DreamjobJobOpening.company_id = AppUser.id'),
|
||||||
|
'limit' => 1
|
||||||
|
),
|
||||||
|
'User' => array(
|
||||||
|
'className' => 'User',
|
||||||
|
'foreignKey' => false,
|
||||||
|
'conditions' => array('DreamjobJobOpening.company_id = AppUser.id and User.id = AppUser.user_id'),
|
||||||
|
'limit' => 1
|
||||||
),
|
),
|
||||||
'DreamjobListKindofjob' => array(
|
'DreamjobListKindofjob' => array(
|
||||||
'className' => 'DreamjobListKindofjob',
|
'className' => 'DreamjobListKindofjob',
|
||||||
|
|
Loading…
Reference in New Issue