diff --git a/tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php b/tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php index 129f7c611..7a22dc1da 100644 --- a/tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php +++ b/tests/Doctrine/Tests/ORM/Mapping/AbstractMappingDriverTest.php @@ -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', + )); + } } \ No newline at end of file diff --git a/tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.ORM.Mapping.Comment.php b/tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.ORM.Mapping.Comment.php index a520e0cb1..124aafe1d 100644 --- a/tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.ORM.Mapping.Comment.php +++ b/tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.ORM.Mapping.Comment.php @@ -9,7 +9,6 @@ $metadata->setPrimaryTable(array( ) )); - $metadata->mapField(array( 'fieldName' => 'content', 'type' => 'text',