Commit 09e072de authored by Marco Pivetta's avatar Marco Pivetta Committed by GitHub

Merge pull request #2840 from greg0ire/proofread_types_doc

Proofread types doc
parents 9d706672 4a584f34
......@@ -927,7 +927,10 @@ Now we implement our ``Doctrine\DBAL\Types\Type`` instance:
}
}
The job of Doctrine-DBAL is to transform your type into an SQL declaration. You can modify the SQL declaration Doctrine will produce. At first, to enable this feature, you must override the canRequireSQLConversion method:
The job of Doctrine-DBAL is to transform your type into an SQL
declaration. You can modify the SQL declaration Doctrine will produce.
At first, to enable this feature, you must override the
``canRequireSQLConversion`` method:
::
......@@ -937,7 +940,8 @@ The job of Doctrine-DBAL is to transform your type into an SQL declaration. You
return true;
}
Then you override the methods convertToPhpValueSQL and convertToDatabaseValueSQL :
Then you override the ``convertToPhpValueSQL`` and
``convertToDatabaseValueSQL`` methods :
::
......@@ -965,5 +969,3 @@ hook it into the database platform:
This would allow using a money type in the ORM for example and
have Doctrine automatically convert it back and forth to the
database.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment