1
0
mirror of synced 2025-02-06 23:39:25 +03:00

Added Comment entity mapping for StaticPHPDriver test

This commit is contained in:
Adrian Olek 2014-03-08 00:52:31 +01:00 committed by Marco Pivetta
parent 32ed32cf56
commit 72bb16173a
2 changed files with 21 additions and 1 deletions

View File

@ -1289,4 +1289,25 @@ class Comment
* @Column(type="text")
*/
private $content;
public static function loadMetadata(ClassMetadataInfo $metadata)
{
$metadata->setInheritanceType(ClassMetadataInfo::INHERITANCE_TYPE_NONE);
$metadata->setPrimaryTable(array(
'indexes' => array(
array('columns' => array('content'), 'flags' => array('fulltext'))
)
));
$metadata->mapField(array(
'fieldName' => 'content',
'type' => 'text',
'scale' => 0,
'length' => NULL,
'unique' => false,
'nullable' => false,
'precision' => 0,
'columnName' => 'content',
));
}
}

View File

@ -9,7 +9,6 @@ $metadata->setPrimaryTable(array(
)
));
$metadata->mapField(array(
'fieldName' => 'content',
'type' => 'text',