This coherent with what is done for Table. All platform specific things are grouped into an options array. Eventually flags should be migrated into options as well.
21 lines
No EOL
544 B
PHP
21 lines
No EOL
544 B
PHP
<?php
|
|
|
|
use Doctrine\ORM\Mapping\ClassMetadataInfo;
|
|
|
|
$metadata->setInheritanceType(ClassMetadataInfo::INHERITANCE_TYPE_NONE);
|
|
$metadata->setPrimaryTable(array(
|
|
'indexes' => array(
|
|
array('columns' => array('content'), 'flags' => array('fulltext'), 'options'=> array('where' => 'content IS NOT NULL'))
|
|
)
|
|
));
|
|
|
|
$metadata->mapField(array(
|
|
'fieldName' => 'content',
|
|
'type' => 'text',
|
|
'scale' => 0,
|
|
'length' => NULL,
|
|
'unique' => false,
|
|
'nullable' => false,
|
|
'precision' => 0,
|
|
'columnName' => 'content',
|
|
)); |