This commit is contained in:
2025-08-07 18:06:55 +03:00
parent eeea57209e
commit d132832d28
34 changed files with 1231 additions and 286 deletions

View File

@@ -23,11 +23,11 @@
use goodboyalex\php_db_components_pack\attributes\PrimaryKey;
use goodboyalex\php_db_components_pack\attributes\Unique;
use goodboyalex\php_db_components_pack\classes\ConditionBuilder;
use goodboyalex\php_db_components_pack\classes\DataBaseColumn;
use goodboyalex\php_db_components_pack\classes\DBItemProperty;
use goodboyalex\php_db_components_pack\enums\DBOperation;
use goodboyalex\php_db_components_pack\enums\DBType;
use goodboyalex\php_db_components_pack\interfaces\IDBItem;
use goodboyalex\php_db_components_pack\models\DataBaseColumn;
use goodboyalex\php_db_components_pack\models\DBItemProperty;
use PDO;
use ReflectionClass;
use ReflectionException;
@@ -235,7 +235,7 @@
// - создаю объект свойства
$item = new DBItemProperty($key, $value, $fieldName, $columnHeader, $isIgnore, $converterToDB,
$item = new DBItemProperty($key, $value, $columnHeader, $isIgnore, $converterToDB,
$converterFromDB, $compareFunc);
// - добавляю в массив
@@ -294,7 +294,7 @@
continue;
// - получаю значение имени поля
$fieldName = $property->FieldName;
$fieldName = $property->Column->Name;
// - преобразую тип
$value = call_user_func($property->ConvertToDB, $property->Value);
@@ -343,10 +343,10 @@
continue;
// - получаю имя поля
$fieldName = $property->FieldName;
$fieldName = $property->Column->Name;
// - добавляю в массив отношений
$propertiesRelationship[$fieldName] = [$property->Name, $property->ConverterFromDB];
$propertiesRelationship[$fieldName] = [$property->Name, $property->ConvertFromDB];
}
// Проходим элементы массива из БД