1
0
mirror of synced 2025-02-02 13:31:45 +03:00

Adding classes required by the SchemaToolTest that exist in 'master', but not in '2.5'

This commit is contained in:
Marco Pivetta 2017-06-21 07:27:41 +02:00
parent 910784213f
commit 9c2b54b748
No known key found for this signature in database
GPG Key ID: 4167D3337FD9D629

View File

@ -208,3 +208,45 @@ class UniqueConstraintAnnotationModel
*/ */
private $hash; 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;
}