/** * @return \yii\db\ActiveQuery */ public function getProcessedBy() { return $this->hasOne(CmsUser::className(), ['id' => 'processed_by']); }
/** * @return \yii\db\ActiveQuery */ public function getUser() { return $this->hasOne(CmsUser::className(), ['id' => 'user_id']); }
/** * version > 2.6.1 * @return \yii\db\ActiveQuery */ public function getUsersToFavorites() { return $this->hasMany(CmsUser::className(), ['id' => 'cms_user_id'])->via('cmsContentElement2cmsUsers'); }
/** * @return \yii\db\ActiveQuery */ public function getUpdatedBy() { return $this->hasOne(CmsUser::className(), ['id' => 'updated_by']); }
/** * @return \yii\db\ActiveQuery */ public function getUsers() { return $this->hasMany(CmsUser::className(), ['id' => 'user_id'])->viaTable('auth_assignment', ['item_name' => 'name']); }
/** * @return \yii\db\ActiveQuery */ public function getElement() { return $this->hasOne(CmsUser::className(), ['id' => 'element_id']); }