There to 2 questions here.
- if your relations really works
- hot to get the data in gridview
I think you have an error in the realtion. The difference between BELONGS_TO and HAS_ONE is, that it tries to create the realtion in a different way. Could you post your Database tables, what fields they have, we need to see what is the key and foreign jey fields.
i guess it is id
in one table and submission_status_id
in the other one.
try to change you relation in one of these two (try if one of them works):
1.
'submissionStatus' => array(self::HAS_ONE, 'SubmissionStatus', array('submission_status_id'=>'id'),
'submissionStatus' => array(self::HAS_ONE, 'SubmissionStatus', array('id'=>''),
2.
in your grid the code you use is correct but as stated in the comment from @Manquer, if the relation returns null it will not work.
But you can try the more Yii style in the GridViiew like this:
do not give any value
only tne name
'name'=>'>submissionStatus.submission_status_name'