Skip to content

locking support #233

Description

@JarekW

support for doctrine locking (TO DISCUSS):

  • read lock (LockMode::PESSIMISTIC_WRITE) from fetch, through validation to save (in case request is to save the form).
    This prevents simultaneous changes within one request.

  • If entity have version field, add it to hidden form field and on post-back fetch entity with LockMode::OPTIMISTIC. If versions don't match show form with changed data and message that it was changed by someone else. It could be implemented by developers with current version, but it would require some additional work with each form.
    This prevents simultaneous changes across requests (from opening form to saving it).

Thiese locks are not mutually exclusive, they could (should) be used together.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions