Commit 653b42c2 authored by zYne's avatar zYne

--no commit message

--no commit message
parent eef58aff
......@@ -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);
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment