1
0
mirror of synced 2024-12-14 15:16:04 +03:00
This commit is contained in:
zYne 2007-02-10 14:41:52 +00:00
parent eef58aff4b
commit 653b42c2b3

View File

@ -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);
}
}
/**