1
0
mirror of synced 2025-01-09 18:47:10 +03:00
doctrine2/tests/Doctrine/Tests/Models/VersionedOneToOne/FirstRelatedEntity.php
Rob Caiger dd398ce577 - Fixed the basic entity persister so that versioned OneToOne entities can be created
- Created an IdentifierFlattener utility class
- Moved the logic for the flatten identifier method into the new utility class
- Replaced calls for private flattenIdentifier to use new utility
- Added appropriate unit tests
2014-10-01 14:01:44 +01:00

33 lines
567 B
PHP

<?php
namespace Doctrine\Tests\Models\VersionedOneToOne;
/**
* @author Rob Caiger <rob@clocal.co.uk>
*
* @Entity
* @Table(name="first_entity")
*/
class FirstRelatedEntity
{
/**
* @Id
* @OneToOne(targetEntity="SecondRelatedEntity", fetch="EAGER")
* @JoinColumn(name="second_entity_id", referencedColumnName="id")
*/
public $secondEntity;
/**
* @Column(name="name")
*/
public $name;
/**
* Version column
*
* @Column(type="integer", name="version")
* @Version
*/
public $version;
}