Skip to content

Commit 2345d0c

Browse files
[Cache] update docblock of PdoAdapter/PdoCache
1 parent cbda6a3 commit 2345d0c

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Symfony/Component/Cache/Adapter/PdoAdapter.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class PdoAdapter extends AbstractAdapter implements PruneableInterface
2727
* a Doctrine DBAL Connection or a DSN string that will be used to
2828
* lazy-connect to the database when the cache is actually used.
2929
*
30+
* When a Doctrine DBAL Connection is passed, the cache table is created
31+
* automatically when possible. Otherwise, use the createTable() method.
32+
*
3033
* List of available options:
3134
* * db_table: The name of the table [default: cache_items]
3235
* * db_id_col: The column where to store the cache id [default: item_id]

src/Symfony/Component/Cache/Simple/PdoCache.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ class PdoCache extends AbstractCache implements PruneableInterface
2525
* a Doctrine DBAL Connection or a DSN string that will be used to
2626
* lazy-connect to the database when the cache is actually used.
2727
*
28+
* When a Doctrine DBAL Connection is passed, the cache table is created
29+
* automatically when possible. Otherwise, use the createTable() method.
30+
*
2831
* List of available options:
2932
* * db_table: The name of the table [default: cache_items]
3033
* * db_id_col: The column where to store the cache id [default: item_id]

0 commit comments

Comments
 (0)