/** * @return ActiveQuery */ public function getClientProfile() { return $this->hasOne(ClientProfileModel::className(), ['client_id' => 'id']); }