1
0
mirror of synced 2025-02-03 05:49:25 +03:00
2016-12-08 18:15:48 +01:00

34 lines
482 B
PHP

<?php
namespace Doctrine\Tests\Models\Cache;
/**
* @Entity
* @Table("cache_person")
* @Cache("NONSTRICT_READ_WRITE")
*/
class Person
{
/**
* @Id
* @GeneratedValue
* @Column(type="integer")
*/
public $id;
/**
* @Column(unique=true)
*/
public $name;
/**
* @OneToOne(targetEntity="Address", mappedBy="person")
*/
public $address;
public function __construct($name)
{
$this->name = $name;
}
}