From 2a027f475847c2fee60b873be3fc55d845e68961 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Thu, 22 Jul 2021 14:16:42 +0200 Subject: Do not redefine properties of Entity class Do not redefine properties that are already defined in the Entity class. --- core/namespace/ORM/Entities/Category.php | 3 --- core/namespace/ORM/Entities/Page.php | 3 --- core/namespace/ORM/Entities/Post.php | 3 --- core/namespace/ORM/Entities/User.php | 3 --- 4 files changed, 12 deletions(-) (limited to 'core') diff --git a/core/namespace/ORM/Entities/Category.php b/core/namespace/ORM/Entities/Category.php index 17560a7..cf3ca5f 100644 --- a/core/namespace/ORM/Entities/Category.php +++ b/core/namespace/ORM/Entities/Category.php @@ -3,12 +3,9 @@ namespace ORM\Entities; use ORM\Entity; class Category extends Entity { - protected $id = FALSE; protected $parent = FALSE; protected $slug = FALSE; protected $name = FALSE; protected $body = FALSE; protected $argv = FALSE; - protected $time_insert = FALSE; - protected $time_update = FALSE; } diff --git a/core/namespace/ORM/Entities/Page.php b/core/namespace/ORM/Entities/Page.php index 94e5ff5..96ff233 100644 --- a/core/namespace/ORM/Entities/Page.php +++ b/core/namespace/ORM/Entities/Page.php @@ -3,12 +3,9 @@ namespace ORM\Entities; use ORM\Entity; class Page extends Entity { - protected $id = FALSE; protected $user = FALSE; protected $slug = FALSE; protected $name = FALSE; protected $body = FALSE; protected $argv = FALSE; - protected $time_insert = FALSE; - protected $time_update = FALSE; } diff --git a/core/namespace/ORM/Entities/Post.php b/core/namespace/ORM/Entities/Post.php index 080f01f..6a52a1f 100644 --- a/core/namespace/ORM/Entities/Post.php +++ b/core/namespace/ORM/Entities/Post.php @@ -3,13 +3,10 @@ namespace ORM\Entities; use ORM\Entity; class Post extends Entity { - protected $id = FALSE; protected $user = FALSE; protected $category = FALSE; protected $slug = FALSE; protected $name = FALSE; protected $body = FALSE; protected $argv = FALSE; - protected $time_insert = FALSE; - protected $time_update = FALSE; } diff --git a/core/namespace/ORM/Entities/User.php b/core/namespace/ORM/Entities/User.php index f0c9a1f..65d5345 100644 --- a/core/namespace/ORM/Entities/User.php +++ b/core/namespace/ORM/Entities/User.php @@ -3,7 +3,6 @@ namespace ORM\Entities; use ORM\Entity; class User extends Entity { - protected $id = FALSE; protected $slug = FALSE; protected $username = FALSE; protected $password = FALSE; @@ -11,6 +10,4 @@ class User extends Entity { protected $mailaddr = FALSE; protected $body = FALSE; protected $argv = FALSE; - protected $time_insert = FALSE; - protected $time_update = FALSE; } -- cgit v1.2.3