From 9c2b54b748f9cfb857995d20ec90ddd690c712ba Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Wed, 21 Jun 2017 07:27:41 +0200 Subject: [PATCH] Adding classes required by the `SchemaToolTest` that exist in 'master', but not in '2.5' --- .../Tests/ORM/Tools/SchemaToolTest.php | 42 +++++++++++++++++++ 1 file changed, 42 insertions(+) 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; +}