/** * @return \yii\db\ActiveQuery */ public function getTimesheets() { return $this->hasMany(Timesheet::className(), ['user_id' => 'id']); }