File tree Expand file tree Collapse file tree
src/BitrixProps/UserProps Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313
1414vendor
1515composer.phar
16- composer.lock
16+ composer.lock
17+ orm_annotations.php
Original file line number Diff line number Diff line change 11<?php namespace Vf92 \BitrixProps \UserProps ;
22
3+ use Bitrix \Main \UserTable ;
34use WebArch \BitrixUserPropertyType \Abstraction \Custom \CheckableValueInterface ;
45use WebArch \BitrixUserPropertyType \Abstraction \Custom \ConvertibleValueInterface ;
56use 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 [
You can’t perform that action at this time.
0 commit comments