Skip to content

Commit 58677c2

Browse files
committed
Make Embeddable not transient
1 parent 9a0fcb5 commit 58677c2

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class AnnotationDriver extends AbstractAnnotationDriver
4444
protected $entityAnnotationClasses = [
4545
Mapping\Entity::class => 1,
4646
Mapping\MappedSuperclass::class => 2,
47+
Mapping\Embeddable::class => 3,
4748
];
4849

4950
/**

tests/Doctrine/Tests/ORM/Functional/ValueObjectsTest.php

+5
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,11 @@ public function getInfiniteEmbeddableNestingData()
328328
['DDCNestingEmbeddable1', 'DDCNestingEmbeddable4'],
329329
];
330330
}
331+
332+
public function testEmbeddableIsNotTransient()
333+
{
334+
$this->assertFalse($this->_em->getMetadataFactory()->isTransient(DDC93Address::class));
335+
}
331336
}
332337

333338

0 commit comments

Comments
 (0)