1
0
mirror of synced 2025-01-18 22:41:43 +03:00

#1176 DDC-3378 - moved test asset entities to proper models directory

This commit is contained in:
Marco Pivetta 2015-01-22 12:07:42 +01:00
parent f189c1aaf0
commit 8987c9ab37
2 changed files with 35 additions and 0 deletions

View File

@ -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;
}

View 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;
}