initial commit
[namibia] / module / Auction / src / Auction / Entity / OpenDayGroup.php
1 <?php
2 namespace Auction\Entity;
3
4 use Doctrine\ORM\Mapping as ORM;
5
6
7
8 /**
9  * @ORM\Entity
10  * @ORM\Table(name="auction_open_day_group")
11  */
12 class OpenDayGroup
13 {
14
15         /**
16          * Can archive records.
17          */
18         const ARCHIVE = false;
19         /**
20          * Pull Synchronization Strategy for this table.
21          */
22         const PULL_SYNCH_STRATEGY = false;
23         /**
24          * Push Synchronization Strategy for this table.
25          */
26         const PUSH_SYNCH_STRATEGY = false;
27
28         /**
29          * @ORM\Id
30          * @ORM\Column(type="integer");
31          * @ORM\GeneratedValue(strategy="AUTO")
32          */
33         protected $id;
34
35         /**
36          * @ORM\ManyToOne(targetEntity="\Auction\Entity\OpenDay")
37          * @ORM\JoinColumn(nullable=false, name="auction_open_day_id")
38          **/
39         protected $openDay;
40
41         /**
42          * @ORM\ManyToOne(targetEntity="\Company\Entity\Group")
43          * @ORM\JoinColumn(nullable=false, name="company_group_id")
44          **/
45         protected $companyGroup;
46
47
48
49
50
51         /**
52          * Magic getter to expose protected properties.
53          * @param string $property
54          * @return mixed
55          */
56         public function __get($property)
57         {
58                 return $this->$property;
59         }
60
61         /**
62          * Magic setter to save protected properties.
63          * @param string $property
64          * @param mixed $value
65          */
66         public function __set($property, $value)
67         {
68                 $this->$property = $value;
69         }
70
71 }