Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <pre><code> Your models should have following association Positions model: /** * hasMany associations * * @var array */ public $hasMany = array( 'Applicant' =&gt; array( 'className' =&gt; 'Applicant', 'foreignKey' =&gt; 'position_id', 'dependent' =&gt; false, 'conditions' =&gt; '', 'fields' =&gt; '', 'order' =&gt; '', 'limit' =&gt; '', 'offset' =&gt; '', 'exclusive' =&gt; '', 'finderQuery' =&gt; '', 'counterQuery' =&gt; '' ), ); Application model: /** * belongsTo associations * * @var array */ public $belongsTo = array( 'Dentist' =&gt; array( 'className' =&gt; 'Dentist', 'foreignKey' =&gt; 'dentist_id', 'conditions' =&gt; '', 'fields' =&gt; '', 'order' =&gt; '' ), ); /** * hasMany associations * * @var array */ public $hasMany = array( 'Dentist' =&gt; array( 'className' =&gt; 'Dentist', 'foreignKey' =&gt; 'application_id', 'dependent' =&gt; false, 'conditions' =&gt; '', 'fields' =&gt; '', 'order' =&gt; '', 'limit' =&gt; '', 'offset' =&gt; '', 'exclusive' =&gt; '', 'finderQuery' =&gt; '', 'counterQuery' =&gt; '' ), ); Dentist model: /** * belongsTo associations * * @var array */ public $belongsTo = array( 'Applicant' =&gt; array( 'className' =&gt; 'Applicant', 'foreignKey' =&gt; 'applicant_id', 'conditions' =&gt; '', 'fields' =&gt; '', 'order' =&gt; '' ), ); /** * hasMany associations * * @var array */ public $hasMany = array( 'Applicant' =&gt; array( 'className' =&gt; 'Applicant', 'foreignKey' =&gt; 'dentist_id', 'dependent' =&gt; false, 'conditions' =&gt; '', 'fields' =&gt; '', 'order' =&gt; '', 'limit' =&gt; '', 'offset' =&gt; '', 'exclusive' =&gt; '', 'finderQuery' =&gt; '', 'counterQuery' =&gt; '' ), ); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload