Commit 36e3b752 authored by zYne's avatar zYne

fixed index documentation

parent e592d77f
...@@ -11,9 +11,7 @@ class IndexTest extends Doctrine_Record ...@@ -11,9 +11,7 @@ class IndexTest extends Doctrine_Record
public function setTableDefinition() public function setTableDefinition()
{ {
\$this->hasColumn('name', 'string'); \$this->hasColumn('name', 'string');
}
public function setUp()
{
\$this->index('myindex', array('fields' => 'name'); \$this->index('myindex', array('fields' => 'name');
} }
} }
...@@ -30,9 +28,7 @@ class MultiColumnIndexTest extends Doctrine_Record ...@@ -30,9 +28,7 @@ class MultiColumnIndexTest extends Doctrine_Record
{ {
\$this->hasColumn('name', 'string'); \$this->hasColumn('name', 'string');
\$this->hasColumn('code', 'string'); \$this->hasColumn('code', 'string');
}
public function setUp()
{
\$this->index('myindex', array('fields' => array('name', 'code'))); \$this->index('myindex', array('fields' => array('name', 'code')));
} }
} }
...@@ -50,9 +46,7 @@ class MultipleIndexTest extends Doctrine_Record ...@@ -50,9 +46,7 @@ class MultipleIndexTest extends Doctrine_Record
\$this->hasColumn('name', 'string'); \$this->hasColumn('name', 'string');
\$this->hasColumn('code', 'string'); \$this->hasColumn('code', 'string');
\$this->hasColumn('age', 'integer'); \$this->hasColumn('age', 'integer');
}
public function setUp()
{
\$this->index('myindex', array('fields' => array('name', 'code'))); \$this->index('myindex', array('fields' => array('name', 'code')));
\$this->index('ageindex', array('fields' => array('age')); \$this->index('ageindex', array('fields' => array('age'));
} }
......
...@@ -27,9 +27,7 @@ class MultipleIndexTest extends Doctrine_Record ...@@ -27,9 +27,7 @@ class MultipleIndexTest extends Doctrine_Record
\$this->hasColumn('name', 'string'); \$this->hasColumn('name', 'string');
\$this->hasColumn('code', 'string'); \$this->hasColumn('code', 'string');
\$this->hasColumn('age', 'integer'); \$this->hasColumn('age', 'integer');
}
public function setUp()
{
\$this->index('myindex', array( \$this->index('myindex', array(
'fields' => array( 'fields' => array(
'name' => 'name' =>
......
...@@ -10,9 +10,7 @@ class Article ...@@ -10,9 +10,7 @@ class Article
{ {
\$this->hasColumn('name', 'string'); \$this->hasColumn('name', 'string');
\$this->hasColumn('content', 'string'); \$this->hasColumn('content', 'string');
}
public function setUp()
{
\$this->index('content', array('fields' => 'content', \$this->index('content', array('fields' => 'content',
'type' => 'fulltext')); 'type' => 'fulltext'));
} }
......
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