Skip to content

Commit c4ae41b

Browse files
committed
Adapt version.
1 parent ff0a015 commit c4ae41b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"prefer-stable": true,
1616
"require": {
1717
"php": ">=8.1 <8.4",
18-
"byjg/micro-orm": "^5.0",
18+
"byjg/micro-orm": "5.0.x-dev",
1919
"byjg/cache-engine": "^5.0",
2020
"byjg/jwt-wrapper": "^5.0"
2121
},

src/UsersDBDataset.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,10 +411,11 @@ public function getProperty(string|HexUuidLiteral|int $userId, string $propertyN
411411
* Return all property's fields from this user
412412
*
413413
* @param UserModel $userRow
414+
* @throws RepositoryReadOnlyException
414415
*/
415416
protected function setPropertiesInUser(UserModel $userRow): void
416417
{
417-
$value = $this->propertiesRepository->getMapper()->getFieldMap(UserDefinition::FIELD_USERID)->getUpdateFunctionValue($userRow->getUserid(), $userRow);
418+
$value = $this->propertiesRepository->getMapper()->getFieldMap(UserDefinition::FIELD_USERID)->getUpdateFunctionValue($userRow->getUserid(), $userRow, $this->propertiesRepository->getDbDriverWrite()->getDbHelper());
418419
$query = Query::getInstance()
419420
->table($this->getUserPropertiesDefinition()->table())
420421
->where("{$this->getUserPropertiesDefinition()->getUserid()} = :id", ['id' => $value]);

0 commit comments

Comments
 (0)