Skip to content

Remove Type::canRequireSQLConversion from docs #6318

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 3 additions & 14 deletions docs/en/reference/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -848,19 +848,8 @@ 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:

::

<?php
public function canRequireSQLConversion()
{
return true;
}

Then you override the ``convertToPhpValueSQL`` and
``convertToDatabaseValueSQL`` methods :
At first, you override the ``convertToPhpValueSQL`` and
``convertToDatabaseValueSQL`` methods:

::

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

Now we have to register this type with the Doctrine Type system and
Then you have to register this type with the Doctrine Type system and
hook it into the database platform:

::
Expand Down