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
4eefceb0
Commit
4eefceb0
authored
Jun 27, 2012
by
Benjamin Eberlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix style and CS
parent
570b0983
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
AbstractPlatform.php
lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
+1
-0
JsonArrayType.php
lib/Doctrine/DBAL/Types/JsonArrayType.php
+3
-3
SimpleArrayType.php
lib/Doctrine/DBAL/Types/SimpleArrayType.php
+4
-3
No files found.
lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
View file @
4eefceb0
...
...
@@ -327,6 +327,7 @@ abstract class AbstractPlatform
foreach
(
Type
::
getTypesMap
()
as
$typeName
=>
$className
)
{
$type
=
Type
::
getType
(
$typeName
);
if
(
$type
->
requiresSQLCommentHint
(
$this
))
{
$this
->
doctrineTypeComments
[]
=
$typeName
;
}
...
...
lib/Doctrine/DBAL/Types/JsonArrayType.php
View file @
4eefceb0
...
...
@@ -29,12 +29,12 @@ use Doctrine\DBAL\Platforms\AbstractPlatform;
*/
class
JsonArrayType
extends
Type
{
public
function
getSQLDeclaration
(
array
$fieldDeclaration
,
\Doctrine\DBAL\Platforms\
AbstractPlatform
$platform
)
public
function
getSQLDeclaration
(
array
$fieldDeclaration
,
AbstractPlatform
$platform
)
{
return
$platform
->
getClobTypeDeclarationSQL
(
$fieldDeclaration
);
}
public
function
convertToDatabaseValue
(
$value
,
\Doctrine\DBAL\Platforms\
AbstractPlatform
$platform
)
public
function
convertToDatabaseValue
(
$value
,
AbstractPlatform
$platform
)
{
if
(
null
===
$value
)
{
return
null
;
...
...
@@ -43,7 +43,7 @@ class JsonArrayType extends Type
return
json_encode
(
$value
);
}
public
function
convertToPHPValue
(
$value
,
\Doctrine\DBAL\Platforms\
AbstractPlatform
$platform
)
public
function
convertToPHPValue
(
$value
,
AbstractPlatform
$platform
)
{
if
(
$value
===
null
)
{
return
array
();
...
...
lib/Doctrine/DBAL/Types/SimpleArrayType.php
View file @
4eefceb0
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
*
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
...
...
@@ -31,12 +32,12 @@ use Doctrine\DBAL\Platforms\AbstractPlatform;
*/
class
SimpleArrayType
extends
Type
{
public
function
getSQLDeclaration
(
array
$fieldDeclaration
,
\Doctrine\DBAL\Platforms\
AbstractPlatform
$platform
)
public
function
getSQLDeclaration
(
array
$fieldDeclaration
,
AbstractPlatform
$platform
)
{
return
$platform
->
getClobTypeDeclarationSQL
(
$fieldDeclaration
);
}
public
function
convertToDatabaseValue
(
$value
,
\Doctrine\DBAL\Platforms\
AbstractPlatform
$platform
)
public
function
convertToDatabaseValue
(
$value
,
AbstractPlatform
$platform
)
{
if
(
!
$value
)
{
return
null
;
...
...
@@ -45,7 +46,7 @@ class SimpleArrayType extends Type
return
implode
(
','
,
$value
);
}
public
function
convertToPHPValue
(
$value
,
\Doctrine\DBAL\Platforms\
AbstractPlatform
$platform
)
public
function
convertToPHPValue
(
$value
,
AbstractPlatform
$platform
)
{
if
(
$value
===
null
)
{
return
array
();
...
...
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