Danko
Participant
    # 2 years, 2 months ago

    Hi,

    actually I found that in this file
    Modules/Platform/Core/Repositories/PlatformRepository.php,
    in both update and create Entity, there were this mechanism.

    I think this was the instruction:
    $entity->setAttribute($field, $value);
    This is within a foreach, working all the entity attributes.

    Since I cannot find setAttributes function I UNSET the attributes I don’t want to be forcibly set (only if they are null in the first instance):

    I also add this code:

    I needed to have created_at and updated_at in the user timezone.

    Thank you.