WorklistPatient::relations PHP Method

relations() public method

public relations ( ) : array
return array relational rules.
    public function relations()
    {
        // NOTE: you may need to adjust the relation name and the related
        // class name for the relations automatically generated below.
        return array('patient' => array(self::BELONGS_TO, 'Patient', 'patient_id'), 'worklist' => array(self::BELONGS_TO, 'Worklist', 'worklist_id'), 'worklist_attributes' => array(self::HAS_MANY, 'WorklistPatientAttribute', 'worklist_patient_id'));
    }