diff options
-rw-r--r-- | core/namespace/ORM/Repositories/Category.php | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/core/namespace/ORM/Repositories/Category.php b/core/namespace/ORM/Repositories/Category.php index bd7d060..ead54a4 100644 --- a/core/namespace/ORM/Repositories/Category.php +++ b/core/namespace/ORM/Repositories/Category.php @@ -109,10 +109,6 @@ class Category extends Repository { return parent::update($Entity); } - $query = 'SELECT parent FROM %s WHERE id = ?'; - $query = sprintf($query, static::getTableName()); - - $Statement = $this->Database->prepare($query); $_parent = $Entity->get('parent'); # Fetch the parent of the *new* parent category and let the while loop run through |