1
0
mirror of synced 2025-01-19 15:01:40 +03:00
doctrine2/tests/Doctrine/Tests/Models/MixedToOneIdentity/CompositeToOneKeyState.php

23 lines
418 B
PHP
Raw Normal View History

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