Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 809bda9

Browse filesBrowse files
committed
Fixed doc about registering custom mapping types per @weaverryan suggestions
1 parent 081abeb commit 809bda9
Copy full SHA for 809bda9

File tree

Expand file treeCollapse file tree

1 file changed

+5
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-4
lines changed

‎book/doctrine/dbal.rst

Copy file name to clipboardExpand all lines: book/doctrine/dbal.rst
+5-4Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,10 @@ which is the first one defined or the one configured via the
132132
Each connection is also accessible via the ``doctrine.dbal.[name]_connection``
133133
service where ``[name]`` if the name of the connection.
134134

135-
Registering custom Types
136-
~~~~~~~~~~~~~~~~~~~~~~~~
135+
Registering custom Mapping Types
136+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
137137

138-
You can register custom types throught the configuration. They will be added to
138+
You can register custom types through the configuration. They will be added to
139139
all configured connections.
140140

141141
.. configuration-block::
@@ -158,7 +158,8 @@ all configured connections.
158158
159159
<doctrine:config>
160160
<doctrine:dbal>
161-
<doctrine:type name="custom" class="Acme\HelloBundle\MyCustomType" />
161+
<doctrine:type name="custom_first" class="Acme\HelloBundle\Type\CustomFirst" />
162+
<doctrine:type name="custom_second" class="Acme\HelloBundle\Type\CustomSecond" />
162163
</doctrine:dbal>
163164
</doctrine:config>
164165
</container>

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.