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
7b09cacc
Commit
7b09cacc
authored
Dec 17, 2013
by
Steve Müller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove IN() expression method
parent
fcc09f60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
33 deletions
+2
-33
AbstractPlatform.php
lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
+2
-33
No files found.
lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
View file @
7b09cacc
...
...
@@ -801,37 +801,6 @@ abstract class AbstractPlatform
return
'NOT('
.
$expression
.
')'
;
}
/**
* Returns the SQL to check if a value is one in a set of given values.
*
* Accepts an arbitrary number of parameters. The first parameter
* must always specify the value that should be matched against. Successive
* must contain a logical expression or an array with logical expressions.
* These expressions will be matched against the first parameter.
*
* @param string $column The value that should be matched against.
* @param string|string[] $values The values that will be matched against $column.
*
* @return string The logical expression.
*
* @throws \InvalidArgumentException
*/
public
function
getInExpression
(
$column
,
$values
)
{
if
(
!
is_array
(
$values
))
{
$values
=
array
(
$values
);
}
// TODO: fix this code: the method does not exist
$values
=
$this
->
getIdentifiers
(
$values
);
if
(
count
(
$values
)
==
0
)
{
throw
new
\InvalidArgumentException
(
'Values must not be empty.'
);
}
return
$column
.
' IN ('
.
implode
(
', '
,
$values
)
.
')'
;
}
/**
* Returns the SQL that checks if an expression is null.
*
...
...
@@ -1057,7 +1026,7 @@ abstract class AbstractPlatform
/**
* Returns the FOR UPDATE expression.
*
*
* @return string
*/
public
function
getForUpdateSQL
()
...
...
@@ -1202,7 +1171,7 @@ abstract class AbstractPlatform
/**
* Returns the SQL to drop a foreign key.
*
*
* @param \Doctrine\DBAL\Schema\ForeignKeyConstraint|string $foreignKey
* @param \Doctrine\DBAL\Schema\Table|string $table
*
...
...
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