2009-02-02 11:55:50 +00:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* To change this template, choose Tools | Templates
|
|
|
|
* and open the template in the editor.
|
|
|
|
*/
|
|
|
|
|
|
|
|
namespace Doctrine\Tests\Models\CMS;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Description of CmsAddress
|
|
|
|
*
|
|
|
|
* @author robo
|
2009-02-04 16:35:36 +00:00
|
|
|
* @DoctrineEntity
|
|
|
|
* @DoctrineTable(name="cms_addresses")
|
2009-02-02 11:55:50 +00:00
|
|
|
*/
|
|
|
|
class CmsAddress
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @DoctrineColumn(type="integer")
|
|
|
|
* @DoctrineId
|
|
|
|
* @DoctrineIdGenerator("auto")
|
|
|
|
*/
|
|
|
|
public $id;
|
|
|
|
/**
|
|
|
|
* @DoctrineColumn(type="varchar", length=50)
|
|
|
|
*/
|
|
|
|
public $country;
|
|
|
|
/**
|
|
|
|
* @DoctrineColumn(type="varchar", length=50)
|
|
|
|
*/
|
|
|
|
public $zip;
|
|
|
|
/**
|
|
|
|
* @DoctrineColumn(type="varchar", length=50)
|
|
|
|
*/
|
|
|
|
public $city;
|
|
|
|
/**
|
2009-02-04 16:35:36 +00:00
|
|
|
* @DoctrineOneToOne(targetEntity="CmsUser")
|
|
|
|
* @DoctrineJoinColumn(name="user_id", referencedColumnName="id")
|
2009-02-02 11:55:50 +00:00
|
|
|
*/
|
|
|
|
public $user;
|
|
|
|
}
|
|
|
|
|