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

Add hint to documentation #231

Open
wants to merge 1 commit into
base: 2.14.x
Choose a base branch
from
Open

Conversation

meidlinga
Copy link

Add a hint about getAdatpter when using MasterSlaveFeature to the documentation.

Q A
Documentation yes
Bugfix no
BC Break no
New Feature no
RFC no
QA no

Description

I was using a custom SQL statement with TableGateway and had to consult the source code to ensure on which adapter it will be executed. I think adding this information to the documentation will save others some time in the future.

@meidlinga meidlinga force-pushed the patch-1 branch 2 times, most recently from 1312ebd to c406a52 Compare November 19, 2021 13:37
Add a hint about getAdatpter when using MasterSlaveFeature to the documentation.

Signed-off-by: meidlinga <[email protected]>
@@ -181,7 +181,8 @@ There are a number of features built-in and shipped with laminas-db:

- `MasterSlaveFeature`: the ability to use a master adapter for `insert()`,
`update()`, and `delete()`, but switch to a slave adapter for all `select()`
operations.
operations. Calling `getAdapter()` on `TableGateway` will still return the
master adapter.

Choose a reason for hiding this comment

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

You can have multiple database adapters configured in your application. So, for me, this statement could be misleading.

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.

2 participants