/** * @return \yii\db\ActiveQuery */ public function getMoment() { return $this->hasOne(Moment::className(), ['id' => 'moment_id']); }