public function saveOrFail(?array $data = null, ?array $whiteList = null) : void
    {
        $return = parent::save($data, $whiteList);

        if ($return === false) {
            throw new UnableToSaveRecord('Unable to save entity. Details: ' . json_encode($this->getMessages()));
        }
    }