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
21707474
Commit
21707474
authored
Jan 10, 2012
by
YetiCGN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent message "Call to undefined function InvalidArgumentException()"
parent
98424cc6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
AbstractPlatform.php
lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
+3
-3
No files found.
lib/Doctrine/DBAL/Platforms/AbstractPlatform.php
View file @
21707474
...
...
@@ -703,7 +703,7 @@ abstract class AbstractPlatform
$values
=
$this
->
getIdentifiers
(
$values
);
if
(
count
(
$values
)
==
0
)
{
throw
\InvalidArgumentException
(
'Values must not be empty.'
);
throw
new
\InvalidArgumentException
(
'Values must not be empty.'
);
}
return
$column
.
' IN ('
.
implode
(
', '
,
$values
)
.
')'
;
}
...
...
@@ -1700,7 +1700,7 @@ abstract class AbstractPlatform
public
function
getUniqueConstraintDeclarationSQL
(
$name
,
Index
$index
)
{
if
(
count
(
$index
->
getColumns
())
==
0
)
{
throw
\InvalidArgumentException
(
"Incomplete definition. 'columns' required."
);
throw
new
\InvalidArgumentException
(
"Incomplete definition. 'columns' required."
);
}
return
'CONSTRAINT '
.
$name
.
' UNIQUE ('
...
...
@@ -1725,7 +1725,7 @@ abstract class AbstractPlatform
}
if
(
count
(
$index
->
getColumns
())
==
0
)
{
throw
\InvalidArgumentException
(
"Incomplete definition. 'columns' required."
);
throw
new
\InvalidArgumentException
(
"Incomplete definition. 'columns' required."
);
}
return
$type
.
'INDEX '
.
$name
.
' ('
...
...
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