Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCSP-48606: builderEncoder Database #232

Merged
merged 4 commits into from
Mar 24, 2025

Conversation

rustagir
Copy link
Contributor

@rustagir rustagir commented Mar 21, 2025

Pull Request Info

PR Reviewing Guidelines

JIRA - https://jira.mongodb.org/browse/DOCSP-48606
Staging -
DB api ref
Collection api ref
whats new

Self-Review Checklist

  • Is this free of any warnings or errors in the RST?
  • Did you run a spell-check?
  • Did you run a grammar-check?
  • Are all the links working?
  • Are the facets and meta keywords accurate?

Copy link

netlify bot commented Mar 21, 2025

Deploy Preview for docs-php-library ready!

Name Link
🔨 Latest commit 6f4667a
🔍 Latest deploy log https://app.netlify.com/sites/docs-php-library/deploys/67dda0cb790e3a000832c900
😎 Deploy Preview https://deploy-preview-232--docs-php-library.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@shuangela shuangela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM % 1 tiny nit

- :phpmethod:`Database constructor <MongoDB\Database::__construct()>`
- :phpmethod:`MongoDB\Database::withOptions()`
- :phpmethod:`Collection constructor <MongoDB\Collection::__construct()>`
- :phpmethod:`MongoDB\Collection::withOptions()` methods
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

S: Because you say "the following methods" in the lead in text, I don't think you need the word "methods" after the MongoDB\Collection::withOptions() bullet point.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops! that was left over from an earlier commit. fixing

@rustagir rustagir requested review from a team and jmikola and removed request for a team March 21, 2025 17:02
query and aggregation options. If omitted, the ``Database``
instance uses the default encoder.

.. versionadded:: 1.21.1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be 1.21.

PHPLIB-1646 only fixed a bug with this method not inheriting the existing Database's option.

If builderEncoder is explicitly provided in the $options array (which is what this is documenting), it was always passed along to construct the new Database instance.

@rustagir rustagir requested a review from jmikola March 21, 2025 17:24
@rustagir rustagir merged commit 9a0e1cb into mongodb:master Mar 24, 2025
5 checks passed
rustagir added a commit that referenced this pull request Mar 24, 2025
* DOCSP-48606: builderEncoder Database

* wip

* AS PR fixes 1

* JM small fix

(cherry picked from commit 9a0e1cb)
rustagir added a commit that referenced this pull request Mar 24, 2025
* DOCSP-48606: builderEncoder Database

* wip

* AS PR fixes 1

* JM small fix

(cherry picked from commit 9a0e1cb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants