From a6072826ab33c394f2d69a92c8ee21f615e9657f Mon Sep 17 00:00:00 2001 From: meidlinga Date: Fri, 19 Nov 2021 13:56:33 +0100 Subject: [PATCH] Add hint to documentation Add a hint about getAdatpter when using MasterSlaveFeature to the documentation. Signed-off-by: meidlinga --- docs/book/table-gateway.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/book/table-gateway.md b/docs/book/table-gateway.md index 05ebc0b26..1c7295be1 100644 --- a/docs/book/table-gateway.md +++ b/docs/book/table-gateway.md @@ -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. ```php $table = new TableGateway('artist', $adapter, new Feature\MasterSlaveFeature($slaveAdapter));