Skip to content

Commit

Permalink
#1176 DDC-3378 - moved test asset entities to proper models directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Jan 22, 2015
1 parent f189c1a commit 8987c9a
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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 changes: 12 additions & 0 deletions tests/Doctrine/Tests/Models/MixedToOneIdentity/Country.php
Original file line number Diff line number Diff line change
@@ -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;
}

0 comments on commit 8987c9a

Please sign in to comment.