1
0
mirror of synced 2024-12-15 07:36:03 +03:00
doctrine2/manual/docs/Getting started - Indexes - Special indexes.php
2007-02-11 11:13:37 +00:00

21 lines
578 B
PHP

<?php ?>
Doctrine supports many special indexes. These include Mysql FULLTEXT and Pgsql GiST indexes.
In the following example we define a Mysql FULLTEXT index for the field 'content'.
<br \><br \>
<?php
renderCode("<?php
class Article
{
public function setTableDefinition()
{
\$this->hasColumn('name', 'string');
\$this->hasColumn('content', 'string');
}
public function setUp()
{
\$this->index('content', array('fields' => 'content',
'type' => 'fulltext'));
}
}
?>");