Skip to content

Commit 6ae854e

Browse files
committed
Some CoPilot generated Doctrine models
1 parent 56a278d commit 6ae854e

25 files changed

+1728
-0
lines changed

SOB/Doctrine/Entity/Customer.php

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<?php
2+
3+
namespace SOB\Doctrine\Entity;
4+
5+
use Doctrine\ORM\Mapping as ORM;
6+
7+
/**
8+
* @ORM\Entity
9+
* @ORM\Table(name="customer")
10+
*/
11+
class Customer
12+
{
13+
/**
14+
* @ORM\Id
15+
* @ORM\Column(type="integer")
16+
* @ORM\GeneratedValue(strategy="AUTO")
17+
*/
18+
private $customerId;
19+
20+
/** @ORM\Column(type="string", length=50, nullable=true) */
21+
private $company;
22+
23+
/** @ORM\Column(type="string", length=50, nullable=true) */
24+
private $lastName;
25+
26+
/** @ORM\Column(type="string", length=50, nullable=true) */
27+
private $firstName;
28+
29+
/** @ORM\Column(type="string", length=50, nullable=true) */
30+
private $emailAddress;
31+
32+
/** @ORM\Column(type="string", length=50, nullable=true) */
33+
private $jobTitle;
34+
35+
/** @ORM\Column(type="string", length=25, nullable=true) */
36+
private $businessPhone;
37+
38+
/** @ORM\Column(type="string", length=25, nullable=true) */
39+
private $homePhone;
40+
41+
/** @ORM\Column(type="string", length=25, nullable=true) */
42+
private $mobilePhone;
43+
44+
/** @ORM\Column(type="string", length=25, nullable=true) */
45+
private $faxNumber;
46+
47+
/** @ORM\Column(type="text", nullable=true) */
48+
private $address;
49+
50+
/** @ORM\Column(type="string", length=50, nullable=true) */
51+
private $city;
52+
53+
/** @ORM\Column(type="string", length=50, nullable=true) */
54+
private $stateProvince;
55+
56+
/** @ORM\Column(type="string", length=15, nullable=true) */
57+
private $zipPostalCode;
58+
59+
/** @ORM\Column(type="string", length=50, nullable=true) */
60+
private $countryRegion;
61+
62+
/** @ORM\Column(type="text", nullable=true) */
63+
private $webPage;
64+
65+
/** @ORM\Column(type="text", nullable=true) */
66+
private $notes;
67+
68+
/** @ORM\Column(type="blob", nullable=true) */
69+
private $attachments;
70+
71+
// Getters and setters...
72+
}

SOB/Doctrine/Entity/DateRecord.php

Lines changed: 128 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,128 @@
1+
<?php
2+
3+
namespace SOB\Doctrine\Entity;
4+
5+
use Doctrine\ORM\Mapping as ORM;
6+
7+
/**
8+
* @ORM\Entity
9+
* @ORM\Table(name="dateRecord")
10+
*/
11+
class DateRecord
12+
{
13+
/**
14+
* @ORM\Id
15+
* @ORM\GeneratedValue(strategy="AUTO")
16+
* @ORM\Column(type="integer")
17+
*/
18+
private $dateRecordId;
19+
20+
/**
21+
* @ORM\Column(type="date")
22+
*/
23+
private $dateRequired;
24+
25+
/**
26+
* @ORM\Column(type="date", nullable=true)
27+
*/
28+
private $dateDefaultNull;
29+
30+
/**
31+
* @ORM\Column(type="date", nullable=true, options={"default": "2000-01-02"})
32+
*/
33+
private $dateDefaultNullable;
34+
35+
/**
36+
* @ORM\Column(type="date", options={"default": "2000-01-02"})
37+
*/
38+
private $dateDefaultNotNull;
39+
40+
/**
41+
* @ORM\Column(type="datetime", nullable=true, options={"default": "CURRENT_TIMESTAMP"})
42+
*/
43+
private $timestampDefaultCurrentNullable;
44+
45+
/**
46+
* @ORM\Column(type="datetime", options={"default": "CURRENT_TIMESTAMP"})
47+
*/
48+
private $timestampDefaultCurrentNotNull;
49+
50+
// Getters and setters
51+
52+
public function getDateRecordId(): ?int
53+
{
54+
return $dateRecordId;
55+
}
56+
57+
public function getDateRequired(): ?\DateTimeInterface
58+
{
59+
return $this->dateRequired;
60+
}
61+
62+
public function setDateRequired(\DateTimeInterface $dateRequired): self
63+
{
64+
$this->dateRequired = $dateRequired;
65+
66+
return $this;
67+
}
68+
69+
public function getDateDefaultNull(): ?\DateTimeInterface
70+
{
71+
return $this->dateDefaultNull;
72+
}
73+
74+
public function setDateDefaultNull(?\DateTimeInterface $dateDefaultNull): self
75+
{
76+
$this->dateDefaultNull = $dateDefaultNull;
77+
78+
return $this;
79+
}
80+
81+
public function getDateDefaultNullable(): ?\DateTimeInterface
82+
{
83+
return $this->dateDefaultNullable;
84+
}
85+
86+
public function setDateDefaultNullable(?\DateTimeInterface $dateDefaultNullable): self
87+
{
88+
$this->dateDefaultNullable = $dateDefaultNullable;
89+
90+
return $this;
91+
}
92+
93+
public function getDateDefaultNotNull(): ?\DateTimeInterface
94+
{
95+
return $this->dateDefaultNotNull;
96+
}
97+
98+
public function setDateDefaultNotNull(\DateTimeInterface $dateDefaultNotNull): self
99+
{
100+
$this->dateDefaultNotNull = $dateDefaultNotNull;
101+
102+
return $this;
103+
}
104+
105+
public function getTimestampDefaultCurrentNullable(): ?\DateTimeInterface
106+
{
107+
return $this->timestampDefaultCurrentNullable;
108+
}
109+
110+
public function setTimestampDefaultCurrentNullable(?\DateTimeInterface $timestampDefaultCurrentNullable): self
111+
{
112+
$this->timestampDefaultCurrentNullable = $timestampDefaultCurrentNullable;
113+
114+
return $this;
115+
}
116+
117+
public function getTimestampDefaultCurrentNotNull(): ?\DateTimeInterface
118+
{
119+
return $this->timestampDefaultCurrentNotNull;
120+
}
121+
122+
public function setTimestampDefaultCurrentNotNull(\DateTimeInterface $timestampDefaultCurrentNotNull): self
123+
{
124+
$this->timestampDefaultCurrentNotNull = $timestampDefaultCurrentNotNull;
125+
126+
return $this;
127+
}
128+
}

SOB/Doctrine/Entity/Employee.php

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
<?php
2+
3+
namespace SOB\Doctrine\Entity;
4+
5+
use Doctrine\ORM\Mapping as ORM;
6+
7+
/**
8+
* @ORM\Entity
9+
* @ORM\Table(name="employee")
10+
*/
11+
class Employee
12+
{
13+
/**
14+
* @ORM\Id
15+
* @ORM\Column(type="integer")
16+
* @ORM\GeneratedValue(strategy="AUTO")
17+
*/
18+
private $employeeId;
19+
20+
/** @ORM\Column(type="string", length=50, nullable=true) */
21+
private $company;
22+
23+
/** @ORM\Column(type="string", length=50, nullable=true) */
24+
private $lastName;
25+
26+
/** @ORM\Column(type="string", length=50, nullable=true) */
27+
private $firstName;
28+
29+
/** @ORM\Column(type="string", length=50, nullable=true) */
30+
private $emailAddress;
31+
32+
/** @ORM\Column(type="string", length=50, nullable=true) */
33+
private $jobTitle;
34+
35+
/** @ORM\Column(type="string", length=25, nullable=true) */
36+
private $businessPhone;
37+
38+
/** @ORM\Column(type="string", length=25, nullable=true) */
39+
private $homePhone;
40+
41+
/** @ORM\Column(type="string", length=25, nullable=true) */
42+
private $mobilePhone;
43+
44+
/** @ORM\Column(type="string", length=25, nullable=true) */
45+
private $faxNumber;
46+
47+
/** @ORM\Column(type="text", nullable=true) */
48+
private $address;
49+
50+
/** @ORM\Column(type="string", length=50, nullable=true) */
51+
private $city;
52+
53+
/** @ORM\Column(type="string", length=50, nullable=true) */
54+
private $stateProvince;
55+
56+
/** @ORM\Column(type="string", length=15, nullable=true) */
57+
private $zipPostalCode;
58+
59+
/** @ORM\Column(type="string", length=50, nullable=true) */
60+
private $countryRegion;
61+
62+
/** @ORM\Column(type="text", nullable=true) */
63+
private $webPage;
64+
65+
/** @ORM\Column(type="text", nullable=true) */
66+
private $notes;
67+
68+
/** @ORM\Column(type="blob", nullable=true) */
69+
private $attachments;
70+
71+
// Getters and setters...
72+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?php
2+
3+
namespace SOB\Doctrine\Entity;
4+
5+
use Doctrine\ORM\Mapping as ORM;
6+
7+
/**
8+
* @ORM\Entity
9+
* @ORM\Table(name="employee_privilege")
10+
*/
11+
class EmployeePrivilege
12+
{
13+
/**
14+
* @ORM\Id
15+
* @ORM\Column(type="integer")
16+
*/
17+
private $employeeId;
18+
19+
/**
20+
* @ORM\Id
21+
* @ORM\Column(type="integer")
22+
*/
23+
private $privilegeId;
24+
25+
/**
26+
* @ORM\ManyToOne(targetEntity="Employee")
27+
* @ORM\JoinColumn(name="employee_id", referencedColumnName="employee_id")
28+
*/
29+
private $employee;
30+
31+
/**
32+
* @ORM\ManyToOne(targetEntity="Privilege")
33+
* @ORM\JoinColumn(name="privilege_id", referencedColumnName="privilege_id")
34+
*/
35+
private $privilege;
36+
37+
// Getters and setters...
38+
}

SOB/Doctrine/Entity/Image.php

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
<?php
2+
3+
namespace SOB\Doctrine\Entity;
4+
5+
use Doctrine\ORM\Mapping as ORM;
6+
7+
/**
8+
* @ORM\Entity
9+
* @ORM\Table(name="image")
10+
*/
11+
class Image
12+
{
13+
/**
14+
* @ORM\Id
15+
* @ORM\GeneratedValue(strategy="AUTO")
16+
* @ORM\Column(type="integer")
17+
*/
18+
private $imageId;
19+
20+
/**
21+
* @ORM\Column(type="integer", nullable=true)
22+
*/
23+
private $imageableId;
24+
25+
/**
26+
* @ORM\Column(type="string", length=128)
27+
*/
28+
private $imageableType;
29+
30+
/**
31+
* @ORM\Column(type="string", length=128)
32+
*/
33+
private $path;
34+
35+
// Getters and setters
36+
37+
public function getImageId(): ?int
38+
{
39+
return $this->imageId;
40+
}
41+
42+
public function getImageableId(): ?int
43+
{
44+
return $this->imageableId;
45+
}
46+
47+
public function setImageableId(?int $imageableId): self
48+
{
49+
$this->imageableId = $imageableId;
50+
51+
return $this;
52+
}
53+
54+
public function getImageableType(): ?string
55+
{
56+
return $this->imageableType;
57+
}
58+
59+
public function setImageableType(string $imageableType): self
60+
{
61+
$this->imageableType = $imageableType;
62+
63+
return $this;
64+
}
65+
66+
public function getPath(): ?string
67+
{
68+
return $this->path;
69+
}
70+
71+
public function setPath(string $path): self
72+
{
73+
$this->path = $path;
74+
75+
return $this;
76+
}
77+
}

0 commit comments

Comments
 (0)