public function getPortalUser() { $user = new \User(); $portalUser = $user->portalUser(); if (!$portalUser) { throw new \Exception('No User found for import'); } return $portalUser->id; }