1
0
mirror of synced 2025-01-17 22:11:41 +03:00

fixed index documentation

This commit is contained in:
zYne 2007-03-20 22:53:23 +00:00
parent e592d77f14
commit 36e3b7526a
3 changed files with 5 additions and 15 deletions

View File

@ -11,9 +11,7 @@ class IndexTest extends Doctrine_Record
public function setTableDefinition()
{
\$this->hasColumn('name', 'string');
}
public function setUp()
{
\$this->index('myindex', array('fields' => 'name');
}
}
@ -30,9 +28,7 @@ class MultiColumnIndexTest extends Doctrine_Record
{
\$this->hasColumn('name', 'string');
\$this->hasColumn('code', 'string');
}
public function setUp()
{
\$this->index('myindex', array('fields' => array('name', 'code')));
}
}
@ -50,9 +46,7 @@ class MultipleIndexTest extends Doctrine_Record
\$this->hasColumn('name', 'string');
\$this->hasColumn('code', 'string');
\$this->hasColumn('age', 'integer');
}
public function setUp()
{
\$this->index('myindex', array('fields' => array('name', 'code')));
\$this->index('ageindex', array('fields' => array('age'));
}

View File

@ -27,9 +27,7 @@ class MultipleIndexTest extends Doctrine_Record
\$this->hasColumn('name', 'string');
\$this->hasColumn('code', 'string');
\$this->hasColumn('age', 'integer');
}
public function setUp()
{
\$this->index('myindex', array(
'fields' => array(
'name' =>

View File

@ -10,9 +10,7 @@ class Article
{
\$this->hasColumn('name', 'string');
\$this->hasColumn('content', 'string');
}
public function setUp()
{
\$this->index('content', array('fields' => 'content',
'type' => 'fulltext'));
}