/** * @return \yii\db\ActiveQuery */ public function getUser() { return $this->hasOne(User::className(), ['id' => 'user_id']); }
/** * Retrieves the Last Editor of the Static Page data * * @return \yii\db\ActiveQuery */ public function getLastEditor() { return $this->hasOne(User::className(), ['id' => 'last_editor_id']); }