protected function PrepareDataForSave($postData)
    {
        if (array_key_exists('active', $postData)) {
            if (!array_key_exists('variant_parent_id', $postData) || empty($postData['variant_parent_id'])) {
                $postData['variant_parent_is_active'] = $postData['active'];
            }
        }

        return $postData;
    }