20250806
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
/**
|
||||
* @noinspection SqlNoDataSourceInspection
|
||||
* @noinspection PhpMultipleClassDeclarationsInspection
|
||||
*/
|
||||
|
||||
namespace goodboyalex\php_db_components_pack\traits\Database;
|
||||
@@ -11,6 +12,7 @@
|
||||
use goodboyalex\php_components_pack\classes\Tuple;
|
||||
use goodboyalex\php_db_components_pack\attributes\AutoIncrement;
|
||||
use goodboyalex\php_db_components_pack\attributes\Check;
|
||||
use goodboyalex\php_db_components_pack\attributes\Compare;
|
||||
use goodboyalex\php_db_components_pack\attributes\ConvertToDB;
|
||||
use goodboyalex\php_db_components_pack\attributes\DataType;
|
||||
use goodboyalex\php_db_components_pack\attributes\DefaultValue;
|
||||
@@ -129,7 +131,16 @@
|
||||
// - получаю функцию конвертации и сравнения
|
||||
$converterToDB = $convertAttr?->ConvertToDB;
|
||||
$converterFromDB = $convertAttr?->ConvertFromDB;
|
||||
$compareFunc = $convertAttr?->Compare;
|
||||
|
||||
/**
|
||||
* Сравнение значений.
|
||||
*
|
||||
* @var Compare|null $compareAttr Атрибут сравнения значений.
|
||||
*/
|
||||
$compareAttr = self::FindAttribute($attributes, Compare::class);
|
||||
|
||||
// - получаю функцию сравнения
|
||||
$compareFunc = $compareAttr?->Function;
|
||||
|
||||
// - получаем свойства столбца
|
||||
/**
|
||||
|
Reference in New Issue
Block a user