/** * This is the default 'index' action that is invoked * when an action is not explicitly requested by users. */ public function actionIndex() { $socialLogins = AccountUser::model()->findByPk(784)->accountUserSocialLogins; foreach ($socialLogins as $row) { print_r($row->type); print_r('<br>'); } die; $this->render('index'); }