Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ad056eb

Browse files
committed
Merge pull request doctrine#1462 from DHager/document_transactional
Add a note to documentation for transactional()'s return values
2 parents 506df64 + 72d8489 commit ad056eb

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

docs/README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,13 @@
55
1. Run ./bin/install-dependencies.sh
66
2. Run ./bin/generate-docs.sh
77

8-
It will generate the documentation into the build directory of the checkout.
8+
It will generate the documentation into the build directory of the checkout.
9+
10+
11+
## Theme issues
12+
13+
If you get a "Theme error", check if the `en/_theme` subdirectory is empty,
14+
in which case you will need to run:
15+
16+
1. git submodule init
17+
2. git submodule update

docs/en/reference/transactions-and-concurrency.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ functionally equivalent to the previously shown code looks as follows:
9898
$em->persist($user);
9999
});
100100
101+
.. warning::
102+
103+
For historical reasons, ``EntityManager#transactional($func)`` will return
104+
``false`` whenever the return value of ``$func`` is loosely false.
105+
Some examples of this include ``array()``, ``"0"``, ``""``, ``0``, and
106+
``null``.
107+
101108
The difference between ``Connection#transactional($func)`` and
102109
``EntityManager#transactional($func)`` is that the latter
103110
abstraction flushes the ``EntityManager`` prior to transaction

0 commit comments

Comments
 (0)