Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
6a7f6904
Unverified
Commit
6a7f6904
authored
Aug 17, 2018
by
Michael Moravec
Committed by
Sergei Morozov
Jun 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Doctrine\DBAL\Types\Type::__toString()
parent
06dc97e0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
21 deletions
+5
-21
UPGRADE.md
UPGRADE.md
+4
-0
Graphviz.php
src/Schema/Visitor/Graphviz.php
+1
-1
Type.php
src/Types/Type.php
+0
-20
No files found.
UPGRADE.md
View file @
6a7f6904
# Upgrade to 3.0
## BC BREAK: `Doctrine\DBAL\Types\Type::__toString()` removed
Relying on string representation was discouraged and has been removed.
## BC BREAK: Changes in the `Doctrine\DBAL\Schema` API
-
Removed unused method
`Doctrine\DBAL\Schema\AbstractSchemaManager::_getPortableFunctionsList()`
...
...
src/Schema/Visitor/Graphviz.php
View file @
6a7f6904
...
...
@@ -80,7 +80,7 @@ class Graphviz extends AbstractVisitor
$label
.=
'<TR>'
;
$label
.=
'<TD BORDER="0" ALIGN="LEFT" BGCOLOR="#eeeeec">'
;
$label
.=
'<FONT COLOR="#2e3436" FACE="Helvetica" POINT-SIZE="12">'
.
$columnLabel
.
'</FONT>'
;
$label
.=
'</TD><TD BORDER="0" ALIGN="LEFT" BGCOLOR="#eeeeec"><FONT COLOR="#2e3436" FACE="Helvetica" POINT-SIZE="10">'
.
strtolower
(
$column
->
getType
())
.
'</FONT></TD>'
;
$label
.=
'</TD><TD BORDER="0" ALIGN="LEFT" BGCOLOR="#eeeeec"><FONT COLOR="#2e3436" FACE="Helvetica" POINT-SIZE="10">'
.
strtolower
(
$column
->
getType
()
->
getName
()
)
.
'</FONT></TD>'
;
$label
.=
'<TD BORDER="0" ALIGN="RIGHT" BGCOLOR="#eeeeec" PORT="col'
.
$column
->
getName
()
.
'">'
;
$primaryKey
=
$table
->
getPrimaryKey
();
...
...
src/Types/Type.php
View file @
6a7f6904
...
...
@@ -8,9 +8,6 @@ use Doctrine\DBAL\Platforms\AbstractPlatform;
use
function
array_map
;
use
function
get_class
;
use
function
str_replace
;
use
function
strrpos
;
use
function
substr
;
/**
* The base class for so-called Doctrine mapping types.
...
...
@@ -227,23 +224,6 @@ abstract class Type
);
}
/**
* @deprecated Relying on string representation is discouraged and will be removed in DBAL 3.0.
*
* @return string
*/
public
function
__toString
()
{
$type
=
static
::
class
;
$position
=
strrpos
(
$type
,
'\\'
);
if
(
$position
!==
false
)
{
$type
=
substr
(
$type
,
$position
);
}
return
str_replace
(
'Type'
,
''
,
$type
);
}
/**
* Does working with this column require SQL conversion functions?
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment