1 Commits
1.1.1 ... 2.1.0

Author SHA1 Message Date
beccbfee1e namespace conflict fix 2025-12-24 22:15:06 +05:00
6 changed files with 7 additions and 7 deletions

0
.gitignore vendored Normal file → Executable file
View File

0
LICENSE Normal file → Executable file
View File

0
README.md Normal file → Executable file
View File

0
composer.json Normal file → Executable file
View File

0
mirzaev/record/system/interfaces/record.php Normal file → Executable file
View File

14
mirzaev/record/system/traits/record.php Normal file → Executable file
View File

@@ -10,7 +10,7 @@ use svoboda\time\statement as svoboda;
// Baza database // Baza database
use mirzaev\baza\database, use mirzaev\baza\database,
mirzaev\baza\column, mirzaev\baza\column,
mirzaev\baza\record as baza, mirzaev\baza\record as baza_record,
mirzaev\baza\enumerations\encoding, mirzaev\baza\enumerations\encoding,
mirzaev\baza\enumerations\type; mirzaev\baza\enumerations\type;
@@ -44,9 +44,9 @@ trait record
/** /**
* Record * Record
* *
* @var baza $record The record instance * @var baza_record $record The record instance
*/ */
protected baza $record; protected baza_record $record;
/** /**
* Read * Read
@@ -64,7 +64,7 @@ trait record
offset: 0 offset: 0
)[0] ?? false; )[0] ?? false;
if ($record instanceof baza) { if ($record instanceof baza_record) {
// Initialized the record // Initialized the record
// Exit (success) // Exit (success)
@@ -86,8 +86,8 @@ trait record
{ {
// Writing into the database // Writing into the database
$record = $this->database->read( $record = $this->database->read(
filter: fn(baza $record) => $record->identifier === $this->record->identifier, filter: fn(baza_record $record) => $record->identifier === $this->record->identifier,
update: function (baza &$record) { update: function (baza_record &$record) {
$this->record->updated = svoboda::timestamp(); $this->record->updated = svoboda::timestamp();
$record = $this->record; $record = $this->record;
}, },
@@ -95,7 +95,7 @@ trait record
offset: 0 offset: 0
)[0] ?? false; )[0] ?? false;
if ($record instanceof record) { if ($record instanceof baza_record) {
// Initialized the record // Initialized the record
// Exit (success) // Exit (success)