diff --git a/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3103Test.php b/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3103Test.php new file mode 100644 index 000000000..9e3c38896 --- /dev/null +++ b/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3103Test.php @@ -0,0 +1,46 @@ +createAnnotationDriver()->loadMetadataForClass($className, $classMetadata); + + $this->assertTrue( + $classMetadata->isEmbeddedClass, + 'The isEmbeddedClass property should be true from the mapping data.' + ); + + $serialized = serialize($classMetadata); + $classMetadata = unserialize($serialized); + + $this->assertTrue( + $classMetadata->isEmbeddedClass, + 'The isEmbeddedClass property should still be true after serialization and unserialization.' + ); + } +} + +/** + * @Embeddable + */ +class DDC3103ArticleId +{ + /** + * @var string + * @Column(name="name", type="string", length=255) + */ + protected $nameValue; +} + +