Creating a html table dynamically based on Yii (relations)database table?

can any one tell me how can i fetch a record of relational column in html table dynamically based on yii.

all other data is coming but relational column data is not .


<?php echo $model->relationName->propertyName; ?>