1
0
mirror of synced 2025-02-03 13:59:27 +03:00

36 lines
559 B
PHP

<?php
namespace Doctrine\Tests\Models\Cache;
/**
* @Entity
* @Table("cache_client_address")
*/
class Address
{
const CLASSNAME = __CLASS__;
/**
* @Id
* @GeneratedValue
* @Column(type="integer")
*/
public $id;
/**
* @JoinColumn(name="person_id", referencedColumnName="id")
* @OneToOne(targetEntity="Person", inversedBy="address")
*/
public $person;
/**
* @Column
*/
public $location;
public function __construct($location)
{
$this->location = $location;
}
}