/** * @return \yii\db\ActiveQuery */ public function getPayments() { return $this->hasMany(Payments::className(), ['PI_ID' => 'PI_ID']); }