Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the lock mode in the "Aggregate Fields" cookbook (aggregate-fields.rst) article. #11311

Closed
wants to merge 9 commits into from

Conversation

d-ph
Copy link

@d-ph d-ph commented Feb 26, 2024

Change PESSIMISTIC_READ to PESSIMISTIC_WRITE because otherwise the solution to the race condition at the bottom of the article would allow concurrent reads, which would not solve the presented race condition problem.

Please correct me if I'm wrong because I might be.

greg0ire and others added 9 commits February 4, 2024 11:27
* 3.1.x:
  Bump dependencies in the "getting started" docs page (doctrine#11219)
  DoctrineSetup was renamed to ORMSetup (doctrine#11218)
* 3.1.x:
  Add TokenType class (doctrine#11228)
  Revert "Merge pull request doctrine#11229 from greg0ire/add-columns"
  Add columns for 3.1.x and 4.0x
  Update version ORM from 2 to 3 in docs (doctrine#11221)
  Clean up outdated sentence (doctrine#11224)
  Update README.md
  Point link to correct upgrade guide (doctrine#11220)
  Ignore subclasses without discriminatorValue when generating discriminator column condition SQL (doctrine#11200)
  Update branches in README
* 3.1.x:
  Remove references to deprecated constants from Lexer (doctrine#11234)
* 3.1.x:
  Fix Static Analysis folder reference (doctrine#11281)
  Remove broken assertion from DateAddFunction and DateSubFunction (doctrine#11243)
  Account for inversedBy being a non-falsy-string or null
  Improve static analysis on AttachEntityListenersListener
  docs: recommend safer way to disable logging (doctrine#11269)
  Remove unused baseline entries
  Treat '0' as a legitimate trim char
  Add type field mapper documentation to the sidebar
  Mark document as orphan
  Use correction sectionauthor syntax
  Remove unused trait
  [Documentation] Adding link to Postgres upgrade article (doctrine#11257)
  Validate more variadic parameters (doctrine#11261)
  Throw if a variadic parameter contains unexpected named arguments (doctrine#11260)
  Make docs valid according to guides 0.3.3 (doctrine#11252)
  fix: support array-type arg in QB variadic calls (doctrine#11242)
* 3.1.x:
  Backport QueryParameterTest (doctrine#11288)
  Test different ways of settings query parameters
  Be less restrictive in DiscriminatorColumnMapping phpdoc (doctrine#11226)
  Allow (Array)ParameterType in QueryBuilder
  Do not implicitly cast glob's return type
  Do not cast file_put_contents's return type
  Do not implicitly cast getLockTime()'s return type
  Do not implicitly cast getLockContent()'s return value
Change `PESSIMISTIC_READ` to `PESSIMISTIC_WRITE`. Otherwise, the solution to the race condition at the bottom of the article would allow concurrent reads, which would not solve the presented race condition problem.
@SenseException
Copy link
Member

Is there a reason why you target the 4.0.x branch instead of the default branch 3.1.x?

@d-ph
Copy link
Author

d-ph commented Mar 7, 2024

No reason. It was (somehow) the default target branch when I was creating the PR, and I didn't pay attention. I can change to 3.1.x if needed.

@d-ph d-ph changed the base branch from 4.0.x to 3.1.x March 8, 2024 09:34
@d-ph
Copy link
Author

d-ph commented Mar 8, 2024

Abandoning this PR in favour of: #11344 (changed PR target branch to 3.1.x)

@d-ph d-ph closed this Mar 8, 2024
@d-ph d-ph deleted the patch-1 branch March 8, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants