Your models should have following association
Positions model:
/**
* hasMany associations
*
* @var array
*/
public $hasMany = array(
'Applicant' => array(
'className' => 'Applicant',
'foreignKey' => 'position_id',
'dependent' => false,
'conditions' => '',
'fields' => '',
'order' => '',
'limit' => '',
'offset' => '',
'exclusive' => '',
'finderQuery' => '',
'counterQuery' => ''
),
);
Application model:
/**
* belongsTo associations
*
* @var array
*/
public $belongsTo = array(
'Dentist' => array(
'className' => 'Dentist',
'foreignKey' => 'dentist_id',
'conditions' => '',
'fields' => '',
'order' => ''
),
);
/**
* hasMany associations
*
* @var array
*/
public $hasMany = array(
'Dentist' => array(
'className' => 'Dentist',
'foreignKey' => 'application_id',
'dependent' => false,
'conditions' => '',
'fields' => '',
'order' => '',
'limit' => '',
'offset' => '',
'exclusive' => '',
'finderQuery' => '',
'counterQuery' => ''
),
);
Dentist model:
/**
* belongsTo associations
*
* @var array
*/
public $belongsTo = array(
'Applicant' => array(
'className' => 'Applicant',
'foreignKey' => 'applicant_id',
'conditions' => '',
'fields' => '',
'order' => ''
),
);
/**
* hasMany associations
*
* @var array
*/
public $hasMany = array(
'Applicant' => array(
'className' => 'Applicant',
'foreignKey' => 'dentist_id',
'dependent' => false,
'conditions' => '',
'fields' => '',
'order' => '',
'limit' => '',
'offset' => '',
'exclusive' => '',
'finderQuery' => '',
'counterQuery' => ''
),
);