Skip to content

Commit 6ccfab1

Browse files
Matthias SchmidtTimWolla
andauthored
Add Database::prepare() to migration guide (#174)
* Add `Database::prepare()` to migration guide See WoltLab/WCF#4223 * Fix typo Co-authored-by: Tim Düsterhus <[email protected]> Co-authored-by: Tim Düsterhus <[email protected]>
1 parent 9aa1693 commit 6ccfab1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/migration/wsc53/php.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,8 @@ To allow for detecting the difference, the `UserProfile::getIgnoredUsers()` and
126126
Pass either `UserIgnore::TYPE_BLOCK_DIRECT_CONTACT` or `UserIgnore::TYPE_HIDE_MESSAGES` depending on whether the check refers to a non-directed usage or content.
127127

128128
See [WoltLab/WCF#4064](https://github.com/WoltLab/WCF/pull/4064) and [WoltLab/WCF#3981](https://github.com/WoltLab/WCF/issues/3981) for details.
129+
130+
## `Database::prepare()`
131+
132+
`Database::prepare(string $statement, int $limit = 0, int $offset = 0): PreparedStatement` works the same way as `Database::prepareStatement()` but additionally also replaces all occurences of `app1_` with `app{WCF_N}_` for all installed apps.
133+
This new method makes it superfluous to use `WCF_N` when builiding queries.

0 commit comments

Comments
 (0)