CmsAddress.php 916 Bytes
Newer Older
1 2 3 4 5
<?php

namespace Doctrine\Tests\Models\CMS;

/**
6
 * CmsAddress
7
 *
8
 * @author Roman S. Borschel
9 10
 * @Entity
 * @Table(name="cms_addresses")
11 12 13 14
 */
class CmsAddress
{
    /**
15 16
     * @Column(type="integer")
     * @Id
17
     * @GeneratedValue(strategy="AUTO")
18 19
     */
    public $id;
20

21
    /**
22
     * @Column(type="string", length=50)
23 24
     */
    public $country;
25

26
    /**
27
     * @Column(type="string", length=50)
28 29
     */
    public $zip;
30

31
    /**
32
     * @Column(type="string", length=50)
33 34
     */
    public $city;
35

36
    /**
37 38
     * @OneToOne(targetEntity="CmsUser")
     * @JoinColumn(name="user_id", referencedColumnName="id")
39 40
     */
    public $user;
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56

    public function getId() {
        return $this->id;
    }

    public function getCountry() {
        return $this->country;
    }

    public function getZipCode() {
        return $this->zip;
    }

    public function getCity() {
        return $this->city;
    }
57
}