Skip to content

Commit

Permalink
Add hint to documentation
Browse files Browse the repository at this point in the history
Add a hint about getAdatpter when using MasterSlaveFeature to the documentation.

Signed-off-by: meidlinga <[email protected]>
  • Loading branch information
meidlinga committed Nov 19, 2021
1 parent feeb1ff commit c406a52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/book/table-gateway.md
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit c406a52

Please sign in to comment.