Skip to content

Commit 56a278d

Browse files
committed
Adding Cake ORM
1 parent 470fe4d commit 56a278d

File tree

107 files changed

+2812
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+2812
-11
lines changed

SOB/Cake/Record/Customer.php

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?php
2+
3+
namespace SOB\Cake\Record;
4+
5+
/**
6+
* @property int $customer_id MySQL type integer
7+
* @property ?string $company MySQL type varchar(50)
8+
* @property ?string $last_name MySQL type varchar(50)
9+
* @property ?string $first_name MySQL type varchar(50)
10+
* @property ?string $email_address MySQL type varchar(50)
11+
* @property ?string $job_title MySQL type varchar(50)
12+
* @property ?string $business_phone MySQL type varchar(25)
13+
* @property ?string $home_phone MySQL type varchar(25)
14+
* @property ?string $mobile_phone MySQL type varchar(25)
15+
* @property ?string $fax_number MySQL type varchar(25)
16+
* @property ?string $address MySQL type longtext
17+
* @property ?string $city MySQL type varchar(50)
18+
* @property ?string $state_province MySQL type varchar(50)
19+
* @property ?string $zip_postal_code MySQL type varchar(15)
20+
* @property ?string $country_region MySQL type varchar(50)
21+
* @property ?string $web_page MySQL type longtext
22+
* @property ?string $notes MySQL type longtext
23+
* @property ?string $attachments MySQL type longblob
24+
25+
*/
26+
class Customer extends \Cake\ORM\Entity
27+
{
28+
protected array $_accessible = [
29+
'customer_id' => true,
30+
'company' => true,
31+
'last_name' => true,
32+
'first_name' => true,
33+
'email_address' => true,
34+
'job_title' => true,
35+
'business_phone' => true,
36+
'home_phone' => true,
37+
'mobile_phone' => true,
38+
'fax_number' => true,
39+
'address' => true,
40+
'city' => true,
41+
'state_province' => true,
42+
'zip_postal_code' => true,
43+
'country_region' => true,
44+
'web_page' => true,
45+
'notes' => true,
46+
'attachments' => true,
47+
];
48+
49+
}

SOB/Cake/Record/DateRecord.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
namespace SOB\Cake\Record;
4+
5+
/**
6+
* @property int $dateRecordId MySQL type integer
7+
* @property string $dateRequired MySQL type date
8+
* @property ?string $dateDefaultNull MySQL type date
9+
* @property ?string $dateDefaultNullable MySQL type date
10+
* @property string $dateDefaultNotNull MySQL type date
11+
* @property ?string $timestampDefaultCurrentNullable MySQL type timestamp
12+
* @property string $timestampDefaultCurrentNotNull MySQL type timestamp
13+
14+
*/
15+
class DateRecord extends \Cake\ORM\Entity
16+
{
17+
protected array $_accessible = [
18+
'dateRecordId' => true,
19+
'dateRequired' => true,
20+
'dateDefaultNull' => true,
21+
'dateDefaultNullable' => true,
22+
'dateDefaultNotNull' => true,
23+
'timestampDefaultCurrentNullable' => true,
24+
'timestampDefaultCurrentNotNull' => true,
25+
];
26+
27+
}

SOB/Cake/Record/Employee.php

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?php
2+
3+
namespace SOB\Cake\Record;
4+
5+
/**
6+
* @property int $employee_id MySQL type integer
7+
* @property ?string $company MySQL type varchar(50)
8+
* @property ?string $last_name MySQL type varchar(50)
9+
* @property ?string $first_name MySQL type varchar(50)
10+
* @property ?string $email_address MySQL type varchar(50)
11+
* @property ?string $job_title MySQL type varchar(50)
12+
* @property ?string $business_phone MySQL type varchar(25)
13+
* @property ?string $home_phone MySQL type varchar(25)
14+
* @property ?string $mobile_phone MySQL type varchar(25)
15+
* @property ?string $fax_number MySQL type varchar(25)
16+
* @property ?string $address MySQL type longtext
17+
* @property ?string $city MySQL type varchar(50)
18+
* @property ?string $state_province MySQL type varchar(50)
19+
* @property ?string $zip_postal_code MySQL type varchar(15)
20+
* @property ?string $country_region MySQL type varchar(50)
21+
* @property ?string $web_page MySQL type longtext
22+
* @property ?string $notes MySQL type longtext
23+
* @property ?string $attachments MySQL type longblob
24+
25+
*/
26+
class Employee extends \Cake\ORM\Entity
27+
{
28+
protected array $_accessible = [
29+
'employee_id' => true,
30+
'company' => true,
31+
'last_name' => true,
32+
'first_name' => true,
33+
'email_address' => true,
34+
'job_title' => true,
35+
'business_phone' => true,
36+
'home_phone' => true,
37+
'mobile_phone' => true,
38+
'fax_number' => true,
39+
'address' => true,
40+
'city' => true,
41+
'state_province' => true,
42+
'zip_postal_code' => true,
43+
'country_region' => true,
44+
'web_page' => true,
45+
'notes' => true,
46+
'attachments' => true,
47+
];
48+
49+
}

SOB/Cake/Record/EmployeePrivilege.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace SOB\Cake\Record;
4+
5+
/**
6+
* @property int $employee_id MySQL type integer
7+
* @property int $privilege_id MySQL type integer
8+
9+
*/
10+
class EmployeePrivilege extends \Cake\ORM\Entity
11+
{
12+
protected array $_accessible = [
13+
'employee_id' => true,
14+
'privilege_id' => true,
15+
];
16+
17+
}

SOB/Cake/Record/Image.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
namespace SOB\Cake\Record;
4+
5+
/**
6+
* @property int $image_id MySQL type integer
7+
* @property ?int $imageable_id MySQL type integer
8+
* @property ?string $imageable_type MySQL type varchar(128)
9+
* @property string $path MySQL type varchar(128)
10+
11+
*/
12+
class Image extends \Cake\ORM\Entity
13+
{
14+
protected array $_accessible = [
15+
'image_id' => true,
16+
'imageable_id' => true,
17+
'imageable_type' => true,
18+
'path' => true,
19+
];
20+
21+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?php
2+
3+
namespace SOB\Cake\Record;
4+
5+
/**
6+
* @property int $inventory_transaction_id MySQL type integer
7+
* @property int $inventory_transaction_type_id MySQL type integer
8+
* @property string $transaction_created_date MySQL type datetime
9+
* @property string $transaction_modified_date MySQL type datetime
10+
* @property int $product_id MySQL type integer
11+
* @property int $quantity MySQL type integer
12+
* @property ?int $purchase_order_id MySQL type integer
13+
* @property ?int $order_id MySQL type integer
14+
* @property ?string $comments MySQL type varchar(255)
15+
16+
*/
17+
class InventoryTransaction extends \Cake\ORM\Entity
18+
{
19+
protected array $_accessible = [
20+
'inventory_transaction_id' => true,
21+
'inventory_transaction_type_id' => true,
22+
'transaction_created_date' => true,
23+
'transaction_modified_date' => true,
24+
'product_id' => true,
25+
'quantity' => true,
26+
'purchase_order_id' => true,
27+
'order_id' => true,
28+
'comments' => true,
29+
];
30+
31+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace SOB\Cake\Record;
4+
5+
/**
6+
* @property int $inventory_transaction_type_id MySQL type integer
7+
* @property string $inventory_transaction_type_name MySQL type varchar(50)
8+
9+
*/
10+
class InventoryTransactionType extends \Cake\ORM\Entity
11+
{
12+
protected array $_accessible = [
13+
'inventory_transaction_type_id' => true,
14+
'inventory_transaction_type_name' => true,
15+
];
16+
17+
}

SOB/Cake/Record/Invoice.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
namespace SOB\Cake\Record;
4+
5+
/**
6+
* @property int $invoice_id MySQL type integer
7+
* @property ?int $order_id MySQL type integer
8+
* @property string $invoice_date MySQL type datetime
9+
* @property ?string $due_date MySQL type datetime
10+
* @property ?float $tax MySQL type decimal(19,4)
11+
* @property ?float $shipping MySQL type decimal(19,4)
12+
* @property ?float $amount_due MySQL type decimal(19,4)
13+
14+
*/
15+
class Invoice extends \Cake\ORM\Entity
16+
{
17+
protected array $_accessible = [
18+
'invoice_id' => true,
19+
'order_id' => true,
20+
'invoice_date' => true,
21+
'due_date' => true,
22+
'tax' => true,
23+
'shipping' => true,
24+
'amount_due' => true,
25+
];
26+
27+
}

SOB/Cake/Record/Migration.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace SOB\Cake\Record;
4+
5+
/**
6+
* @property int $migrationId MySQL type int
7+
* @property ?string $ran MySQL type timestamp
8+
9+
*/
10+
class Migration extends \Cake\ORM\Entity
11+
{
12+
protected array $_accessible = [
13+
'migrationId' => true,
14+
'ran' => true,
15+
];
16+
17+
}

SOB/Cake/Record/Order.php

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?php
2+
3+
namespace SOB\Cake\Record;
4+
5+
/**
6+
* @property int $order_id MySQL type integer
7+
* @property ?int $employee_id MySQL type integer
8+
* @property ?int $customer_id MySQL type integer
9+
* @property string $order_date MySQL type datetime
10+
* @property ?string $shipped_date MySQL type datetime
11+
* @property ?int $shipper_id MySQL type integer
12+
* @property ?string $ship_name MySQL type varchar(50)
13+
* @property ?string $ship_address MySQL type longtext
14+
* @property ?string $ship_city MySQL type varchar(50)
15+
* @property ?string $ship_state_province MySQL type varchar(50)
16+
* @property ?string $ship_zip_postal_code MySQL type varchar(50)
17+
* @property ?string $ship_country_region MySQL type varchar(50)
18+
* @property ?float $shipping_fee MySQL type decimal(19,4)
19+
* @property ?float $taxes MySQL type decimal(19,4)
20+
* @property ?string $payment_type MySQL type varchar(50)
21+
* @property ?string $paid_date MySQL type datetime
22+
* @property ?string $notes MySQL type longtext
23+
* @property ?float $tax_rate MySQL type double
24+
* @property ?int $order_tax_status_id MySQL type integer
25+
* @property ?int $order_status_id MySQL type integer
26+
27+
*/
28+
class Order extends \Cake\ORM\Entity
29+
{
30+
protected array $_accessible = [
31+
'order_id' => true,
32+
'employee_id' => true,
33+
'customer_id' => true,
34+
'order_date' => true,
35+
'shipped_date' => true,
36+
'shipper_id' => true,
37+
'ship_name' => true,
38+
'ship_address' => true,
39+
'ship_city' => true,
40+
'ship_state_province' => true,
41+
'ship_zip_postal_code' => true,
42+
'ship_country_region' => true,
43+
'shipping_fee' => true,
44+
'taxes' => true,
45+
'payment_type' => true,
46+
'paid_date' => true,
47+
'notes' => true,
48+
'tax_rate' => true,
49+
'order_tax_status_id' => true,
50+
'order_status_id' => true,
51+
];
52+
53+
}

SOB/Cake/Record/OrderDetail.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
3+
namespace SOB\Cake\Record;
4+
5+
/**
6+
* @property int $order_detail_id MySQL type integer
7+
* @property int $order_id MySQL type integer
8+
* @property ?int $product_id MySQL type integer
9+
* @property float $quantity MySQL type decimal(18,4)
10+
* @property ?float $unit_price MySQL type decimal(19,4)
11+
* @property float $discount MySQL type double
12+
* @property ?int $order_detail_status_id MySQL type integer
13+
* @property ?string $date_allocated MySQL type datetime
14+
* @property ?int $purchase_order_id MySQL type integer
15+
* @property ?int $inventory_transaction_id MySQL type integer
16+
17+
*/
18+
class OrderDetail extends \Cake\ORM\Entity
19+
{
20+
protected array $_accessible = [
21+
'order_detail_id' => true,
22+
'order_id' => true,
23+
'product_id' => true,
24+
'quantity' => true,
25+
'unit_price' => true,
26+
'discount' => true,
27+
'order_detail_status_id' => true,
28+
'date_allocated' => true,
29+
'purchase_order_id' => true,
30+
'inventory_transaction_id' => true,
31+
];
32+
33+
}

SOB/Cake/Record/OrderDetailStatus.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace SOB\Cake\Record;
4+
5+
/**
6+
* @property int $order_detail_status_id MySQL type integer
7+
* @property string $order_detail_status_name MySQL type varchar(50)
8+
9+
*/
10+
class OrderDetailStatus extends \Cake\ORM\Entity
11+
{
12+
protected array $_accessible = [
13+
'order_detail_status_id' => true,
14+
'order_detail_status_name' => true,
15+
];
16+
17+
}

0 commit comments

Comments
 (0)