#1176 DDC-3378 - moved test asset entities to proper models directory
This commit is contained in:
parent
f189c1aaf0
commit
8987c9ab37
@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
namespace Doctrine\Tests\Models\MixedToOneIdentity;
|
||||
|
||||
/** @Entity */
|
||||
class CompositeToOneKeyState
|
||||
{
|
||||
const CLASSNAME = __CLASS__;
|
||||
|
||||
/**
|
||||
* @Id
|
||||
* @Column(type="string")
|
||||
* @GeneratedValue(strategy="NONE")
|
||||
*/
|
||||
public $state;
|
||||
|
||||
/**
|
||||
* @Id
|
||||
* @ManyToOne(targetEntity="Country", cascade={"MERGE"})
|
||||
* @JoinColumn(referencedColumnName="country")
|
||||
*/
|
||||
public $country;
|
||||
}
|
12
tests/Doctrine/Tests/Models/MixedToOneIdentity/Country.php
Normal file
12
tests/Doctrine/Tests/Models/MixedToOneIdentity/Country.php
Normal file
@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
namespace Doctrine\Tests\Models\MixedToOneIdentity;
|
||||
|
||||
/** @Entity */
|
||||
class Country
|
||||
{
|
||||
const CLASSNAME = __CLASS__;
|
||||
|
||||
/** @Id @Column(type="string") @GeneratedValue(strategy="NONE") */
|
||||
public $country;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user