Rajout de doctrine/orm
[zf2.biz/application_blanche.git] / vendor / doctrine / orm / tests / Doctrine / Tests / ORM / Mapping / php / Doctrine.Tests.ORM.Mapping.DDC1170Entity.php
diff --git a/vendor/doctrine/orm/tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.ORM.Mapping.DDC1170Entity.php b/vendor/doctrine/orm/tests/Doctrine/Tests/ORM/Mapping/php/Doctrine.Tests.ORM.Mapping.DDC1170Entity.php
new file mode 100644 (file)
index 0000000..97f4624
--- /dev/null
@@ -0,0 +1,16 @@
+<?php
+
+use Doctrine\ORM\Mapping\ClassMetadataInfo;
+
+$metadata->mapField(array(
+   'id'                 => true,
+   'fieldName'          => 'id',
+   'columnDefinition'   => 'INT unsigned NOT NULL',
+));
+
+$metadata->mapField(array(
+    'fieldName'         => 'value',
+    'columnDefinition'  => 'VARCHAR(255) NOT NULL'
+));
+
+$metadata->setIdGeneratorType(ClassMetadataInfo::GENERATOR_TYPE_NONE);
\ No newline at end of file