/** * @return \yii\db\ActiveQuery */ public function getContactMoment() { return $this->hasOne(ContactMoment::className(), ['id' => 'contact_moment_id']); }
public function getContactMoments() { return $this->hasMany(ContactMoment::className(), ['customer_id' => 'customer_id']); }