diff --git a/tests/Doctrine/Tests/Models/DDC3293/DDC3293Address.php b/tests/Doctrine/Tests/Models/DDC3293/DDC3293Address.php
new file mode 100644
index 000000000..70358b74c
--- /dev/null
+++ b/tests/Doctrine/Tests/Models/DDC3293/DDC3293Address.php
@@ -0,0 +1,10 @@
+assertEquals(true, $class->isEmbeddedClass);
}
+ public function testEmbeddedUseColumnPrefix()
+ {
+ $em = $this->_getTestEntityManager();
+ $em->getConfiguration()->setMetadataDriverImpl($this->_loadDriver());
+
+ $factory = new ClassMetadataFactory();
+ $factory->setEntityManager($em);
+
+ $class = $factory->getMetadataFor('Doctrine\Tests\Models\DDC3293\DDC3293User');
+ $this->assertFalse($class->embeddedClasses['address']['columnPrefix']);
+
+ $class = $factory->getMetadataFor('Doctrine\Tests\Models\DDC3293\DDC3293UserPrefixed');
+
+ $this->assertEquals(
+ '__prefix__',
+ $class->embeddedClasses['address']['columnPrefix']
+ );
+ }
+
public function testEmbeddedMapping()
{
$class = $this->createClassMetadata('Doctrine\Tests\Models\ValueObjects\Person');
diff --git a/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.Models.DDC3293.DDC3293Address.dcm.xml b/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.Models.DDC3293.DDC3293Address.dcm.xml
new file mode 100644
index 000000000..39c0f33b2
--- /dev/null
+++ b/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.Models.DDC3293.DDC3293Address.dcm.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
diff --git a/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.Models.DDC3293.DDC3293User.dcm.xml b/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.Models.DDC3293.DDC3293User.dcm.xml
new file mode 100644
index 000000000..bf24c1fd6
--- /dev/null
+++ b/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.Models.DDC3293.DDC3293User.dcm.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+
diff --git a/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.Models.DDC3293.DDC3293UserPrefixed.dcm.xml b/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.Models.DDC3293.DDC3293UserPrefixed.dcm.xml
new file mode 100644
index 000000000..1e0df304c
--- /dev/null
+++ b/tests/Doctrine/Tests/ORM/Mapping/xml/Doctrine.Tests.Models.DDC3293.DDC3293UserPrefixed.dcm.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+
+
+