public function getConditionGroups()
    {
        $groups = $this->entity->getConditionGroups();
        if ($groups) {
            $result = [];
            foreach ($groups as $group) {
                $result[] = new ConditionGroup($group, $this->locale);
            }

            return $result;
        }

        return;
    }