File tree 1 file changed +3
-14
lines changed
1 file changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -848,19 +848,8 @@ Now we implement our ``Doctrine\DBAL\Types\Type`` instance:
848
848
849
849
The job of Doctrine-DBAL is to transform your type into an SQL
850
850
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:
864
853
865
854
::
866
855
@@ -875,7 +864,7 @@ Then you override the ``convertToPhpValueSQL`` and
875
864
return 'MyFunction('.$sqlExpr.')';
876
865
}
877
866
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
879
868
hook it into the database platform:
880
869
881
870
::
You can’t perform that action at this time.
0 commit comments