applicationList
This commit is contained in:
parent
4dbf6e5967
commit
74df21e5b6
|
@ -129,11 +129,11 @@ class DreamjobJobApplication extends AppModel {
|
|||
'className' => 'DreamjobWorker',
|
||||
'foreignKey' => 'worker_id'
|
||||
),
|
||||
'DreamjobUser' => array(
|
||||
'DreamjobUserWorker' => array(
|
||||
'className' => 'DreamjobUser',
|
||||
'foreignKey' => 'worker_id'
|
||||
),
|
||||
'AppUser' => array(
|
||||
'AppUserWorker' => array(
|
||||
'className' => 'AppUser',
|
||||
'foreignKey' => 'worker_id'
|
||||
),
|
||||
|
@ -145,17 +145,29 @@ class DreamjobJobApplication extends AppModel {
|
|||
|
||||
|
||||
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(
|
||||
'className' => 'DreamjobCompany',
|
||||
'foreignKey' => false,
|
||||
'conditions' => array('DreamjobJobOpening.company_id = DreamjobCompany.djaccount_ptr_id'),
|
||||
'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(
|
||||
'className' => 'DreamjobListKindofjob',
|
||||
|
|
Loading…
Reference in New Issue