Skip to content

Commit dfe32c2

Browse files
authored
Unwrap literalinclude block (#11962)
For some reason, it does not appear to work when nested inside a code-block directive. Anyway, if you specify the language attribute, you get markup identical to what you obtain when using code-block and literalinclude, so this wrapping seems unneeded.
1 parent c51ba3c commit dfe32c2

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

docs/en/cookbook/generated-columns.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ There is no explicit mapping instruction for generated columns. Instead, you
1515
specify that the column should not be written to, and define a custom column
1616
definition.
1717

18-
.. code-block:: php
19-
20-
.. literalinclude:: generated-columns/Person.php
18+
.. literalinclude:: generated-columns/Person.php
19+
:language: php
2120

2221
* ``insertable``, ``updatable``: Setting these to false tells Doctrine to never
2322
write this column - writing to a generated column would result in an error
@@ -41,6 +40,5 @@ Lets assume we have an entity that stores a blogpost as structured JSON.
4140
To avoid extracting all titles on the fly when listing the posts, we create a
4241
generated column with the field.
4342

44-
.. code-block:: php
45-
46-
.. literalinclude:: generated-columns/Article.php
43+
.. literalinclude:: generated-columns/Article.php
44+
:language: php

0 commit comments

Comments
 (0)