From 653b42c2b3666f684cdf8b733df000fb55257796 Mon Sep 17 00:00:00 2001 From: zYne Date: Sat, 10 Feb 2007 14:41:52 +0000 Subject: [PATCH] --- lib/Doctrine/Record.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Doctrine/Record.php b/lib/Doctrine/Record.php index 77fdb54ec..de08d50e8 100644 --- a/lib/Doctrine/Record.php +++ b/lib/Doctrine/Record.php @@ -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); } } /**