From d0e38875e6294b458b717c5877e1ba60e26054e5 Mon Sep 17 00:00:00 2001 From: User Date: Mon, 24 Feb 2025 19:22:20 +0300 Subject: [PATCH] 20250224#3 --- src/AbstractMysqlRepository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AbstractMysqlRepository.php b/src/AbstractMysqlRepository.php index 79ff6ff..4405901 100644 --- a/src/AbstractMysqlRepository.php +++ b/src/AbstractMysqlRepository.php @@ -60,7 +60,7 @@ abstract class AbstractMysqlRepository extends AbstractRepository implements Mys $in = $this->getProperties($object, function ($value){ return (is_string($value)) ? $this->mysql->escapeStr($value) : $value; }); - if($this->getDebug()) {$this->debug($object, $in, $table, $this->getClassesCash(), $this->getRepositoryStack()); exit;} + if($this->getDebug()) {$this->debug($object, $in, $table, $this->getRepositoryStack()); exit;} try { if (!empty($object->getId()) && !empty($this->mysql->findById($table, $object->getId()))) { $this->mysql->updateById($table, $in, $object->getId()); @@ -79,7 +79,7 @@ abstract class AbstractMysqlRepository extends AbstractRepository implements Mys $in = array_map(function ($value){ return (is_string($value)) ? $this->mysql->escapeStr($value) : $value; }, $data); - if($this->getDebug()) {$this->debug($data, $in, $table); exit;} + if($this->getDebug()) {$this->debug($data, $in, $table, $this->getRepositoryStack()); exit;} try { if (!empty($data[$primaryKey]) && !empty($this->mysql->findById($table, $data[$primaryKey], $primaryKey))) { $this->mysql->updateById($table, $in, $data[$primaryKey]);