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