|
|
@@ -3,6 +3,7 @@
|
|
|
namespace frontendApi\modules\v1\models;
|
|
|
|
|
|
use common\helpers\Cache;
|
|
|
+use common\helpers\LoggerTool;
|
|
|
|
|
|
class Relation extends \common\components\ActiveRecord
|
|
|
{
|
|
|
@@ -20,6 +21,9 @@ class Relation extends \common\components\ActiveRecord
|
|
|
public function loopRelationParentDo($userId, callable $callbackFunc, int $offset = 0): bool
|
|
|
{
|
|
|
$allParents = Cache::getAllRelationParents($userId);
|
|
|
+
|
|
|
+ LoggerTool::debug(json_encode(['loopRelationParentDo', $userId ,$allParents]));
|
|
|
+
|
|
|
$allData = array_slice($allParents, $offset, $this->_limit);
|
|
|
unset($allParents);
|
|
|
if ($allData) {
|