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
653b42c2
Commit
653b42c2
authored
Feb 10, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
eef58aff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Record.php
lib/Doctrine/Record.php
+3
-3
No files found.
lib/Doctrine/Record.php
View file @
653b42c2
...
...
@@ -1532,16 +1532,16 @@ abstract class Doctrine_Record extends Doctrine_Access implements Countable, Ite
* if not this method retrieves index named $name
*
* @param string $name the name of the index
* @param array
|string $columns an array of columns or a single column name
* @param array
$definition the definition array
* @param array $options an array of options
* @return mixed
*/
public
function
index
(
$name
,
$columns
=
null
,
array
$options
=
array
())
public
function
index
(
$name
,
array
$definition
=
array
())
{
if
(
!
$columns
)
{
return
$this
->
_table
->
getIndex
(
$name
);
}
else
{
return
$this
->
_table
->
addIndex
(
$name
,
$
columns
,
$options
);
return
$this
->
_table
->
addIndex
(
$name
,
$
definition
);
}
}
/**
...
...
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