andWhere(['id' => $scope])->asArray()->one(); if ($row === null) { return null; } $entity = new ScopeEntity($this->server); $entity->hydrate($row); return $entity; } }