Skip to content

Commit c82a62e

Browse files
Remove Type::canRequireSQLConversion from docs (#6318)
1 parent f3defbb commit c82a62e

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

docs/en/reference/types.rst

+3-14
Original file line numberDiff line numberDiff line change
@@ -848,19 +848,8 @@ Now we implement our ``Doctrine\DBAL\Types\Type`` instance:
848848

849849
The job of Doctrine-DBAL is to transform your type into an SQL
850850
declaration. You can modify the SQL declaration Doctrine will produce.
851-
At first, to enable this feature, you must override the
852-
``canRequireSQLConversion`` method:
853-
854-
::
855-
856-
<?php
857-
public function canRequireSQLConversion()
858-
{
859-
return true;
860-
}
861-
862-
Then you override the ``convertToPhpValueSQL`` and
863-
``convertToDatabaseValueSQL`` methods :
851+
At first, you override the ``convertToPhpValueSQL`` and
852+
``convertToDatabaseValueSQL`` methods:
864853

865854
::
866855

@@ -875,7 +864,7 @@ Then you override the ``convertToPhpValueSQL`` and
875864
return 'MyFunction('.$sqlExpr.')';
876865
}
877866

878-
Now we have to register this type with the Doctrine Type system and
867+
Then you have to register this type with the Doctrine Type system and
879868
hook it into the database platform:
880869

881870
::

0 commit comments

Comments
 (0)