2009-02-02 14:55:50 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Doctrine\Tests\Models\CMS;
|
|
|
|
|
|
|
|
/**
|
2009-02-18 10:59:11 +03:00
|
|
|
* CmsAddress
|
2009-02-02 14:55:50 +03:00
|
|
|
*
|
2009-02-18 10:59:11 +03:00
|
|
|
* @author Roman S. Borschel
|
2009-05-29 14:23:13 +04:00
|
|
|
* @Entity
|
|
|
|
* @Table(name="cms_addresses")
|
2009-02-02 14:55:50 +03:00
|
|
|
*/
|
|
|
|
class CmsAddress
|
|
|
|
{
|
|
|
|
/**
|
2009-05-29 14:23:13 +04:00
|
|
|
* @Column(type="integer")
|
|
|
|
* @Id
|
2009-06-07 21:20:37 +04:00
|
|
|
* @GeneratedValue(strategy="AUTO")
|
2009-02-02 14:55:50 +03:00
|
|
|
*/
|
|
|
|
public $id;
|
2009-02-18 10:59:11 +03:00
|
|
|
|
2009-02-02 14:55:50 +03:00
|
|
|
/**
|
2009-05-29 14:23:13 +04:00
|
|
|
* @Column(type="string", length=50)
|
2009-02-02 14:55:50 +03:00
|
|
|
*/
|
|
|
|
public $country;
|
2009-02-18 10:59:11 +03:00
|
|
|
|
2009-02-02 14:55:50 +03:00
|
|
|
/**
|
2009-05-29 14:23:13 +04:00
|
|
|
* @Column(type="string", length=50)
|
2009-02-02 14:55:50 +03:00
|
|
|
*/
|
|
|
|
public $zip;
|
2009-02-18 10:59:11 +03:00
|
|
|
|
2009-02-02 14:55:50 +03:00
|
|
|
/**
|
2009-05-29 14:23:13 +04:00
|
|
|
* @Column(type="string", length=50)
|
2009-02-02 14:55:50 +03:00
|
|
|
*/
|
|
|
|
public $city;
|
2009-02-18 10:59:11 +03:00
|
|
|
|
2009-02-02 14:55:50 +03:00
|
|
|
/**
|
2009-05-29 14:23:13 +04:00
|
|
|
* @OneToOne(targetEntity="CmsUser")
|
|
|
|
* @JoinColumn(name="user_id", referencedColumnName="id")
|
2009-02-02 14:55:50 +03:00
|
|
|
*/
|
|
|
|
public $user;
|
2009-05-13 19:19:27 +04:00
|
|
|
|
|
|
|
public function getId() {
|
|
|
|
return $this->id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getCountry() {
|
|
|
|
return $this->country;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getZipCode() {
|
|
|
|
return $this->zip;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getCity() {
|
|
|
|
return $this->city;
|
|
|
|
}
|
2009-02-18 10:59:11 +03:00
|
|
|
}
|