diff --git a/tests/Doctrine/Tests/ORM/Tools/SchemaToolTest.php b/tests/Doctrine/Tests/ORM/Tools/SchemaToolTest.php index c46b66133..c8b23960c 100644 --- a/tests/Doctrine/Tests/ORM/Tools/SchemaToolTest.php +++ b/tests/Doctrine/Tests/ORM/Tools/SchemaToolTest.php @@ -208,3 +208,45 @@ class UniqueConstraintAnnotationModel */ private $hash; } + +/** + * @Entity + * @Table(name="first_entity") + */ +class FirstEntity +{ + /** + * @Id + * @Column(name="id") + */ + public $id; + + /** + * @OneToOne(targetEntity="SecondEntity") + * @JoinColumn(name="id", referencedColumnName="fist_entity_id") + */ + public $secondEntity; + + /** + * @Column(name="name") + */ + public $name; +} + +/** + * @Entity + * @Table(name="second_entity") + */ +class SecondEntity +{ + /** + * @Id + * @Column(name="fist_entity_id") + */ + public $fist_entity_id; + + /** + * @Column(name="name") + */ + public $name; +}