protected function getChangedFields($obj)
    {
        $changedFields = $obj->getChangedFields(true, 2);
        foreach ($changedFields as $key => $value) {
            $changedFields[$key]['before'] = '(' . gettype($value['before']) . ') ' . $value['before'];
            $changedFields[$key]['after'] = '(' . gettype($value['after']) . ') ' . $value['after'];
            unset($changedFields[$key]['level']);
        }
        return $changedFields;
    }