Skip to content

Commit 036b21c

Browse files
committed
[master] up
1 parent b699f9f commit 036b21c

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@
1313

1414
vendor
1515
composer.phar
16-
composer.lock
16+
composer.lock
17+
orm_annotations.php

src/BitrixProps/UserProps/User.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php namespace Vf92\BitrixProps\UserProps;
22

3+
use Bitrix\Main\UserTable;
34
use WebArch\BitrixUserPropertyType\Abstraction\Custom\CheckableValueInterface;
45
use WebArch\BitrixUserPropertyType\Abstraction\Custom\ConvertibleValueInterface;
56
use WebArch\BitrixUserPropertyType\Abstraction\DbColumnType\IntegerColTypeTrait;
@@ -23,7 +24,7 @@ public static function onBeforeSave($userField, $value)
2324
*/
2425
public static function onAfterFetch($userField, $rawValue)
2526
{
26-
$user = \Bitrix\Main\UserTable::getById($rawValue)->fetchObject();
27+
$user = UserTable::getById($rawValue)->fetchObject();
2728
return ['id' => $rawValue, 'user' => $user];
2829
}
2930

@@ -97,7 +98,7 @@ public static function checkFields($userField, $value)
9798
['id' => 1, 'text'=>'Не корректный id пользователя'],
9899
];
99100
}
100-
$count = \Bitrix\Main\UserTable::getCount((new \Bitrix\Main\ORM\Query\Filter\ConditionTree())->where('ID',
101+
$count = UserTable::getCount((new \Bitrix\Main\ORM\Query\Filter\ConditionTree())->where('ID',
101102
$val));
102103
if ($count === 0) {
103104
return [

0 commit comments

Comments
 (0)