Added Comment entity mapping for StaticPHPDriver test
This commit is contained in:
parent
32ed32cf56
commit
72bb16173a
@ -1289,4 +1289,25 @@ class Comment
|
|||||||
* @Column(type="text")
|
* @Column(type="text")
|
||||||
*/
|
*/
|
||||||
private $content;
|
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',
|
||||||
|
));
|
||||||
|
}
|
||||||
}
|
}
|
@ -9,7 +9,6 @@ $metadata->setPrimaryTable(array(
|
|||||||
)
|
)
|
||||||
));
|
));
|
||||||
|
|
||||||
|
|
||||||
$metadata->mapField(array(
|
$metadata->mapField(array(
|
||||||
'fieldName' => 'content',
|
'fieldName' => 'content',
|
||||||
'type' => 'text',
|
'type' => 'text',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user