Ticket #404 (closed defect: invalid)

Opened 3 years ago

Last modified 3 years ago

Save's $blnForceUpdate - what's it for?

Reported by: VexedPanda Owned by: somebody
Priority: important Milestone: 1.1.1 Stable
Component: ORM Version: 1.0.0 Stable
Keywords: Cc:

Description

I've gotten in the habit of setting this to false when supplying a third parameter I added for my app.. But a colleague just asked what it was for, so I set out to find out... Apparently, it doesn't ever get checked.. So what _is_ it for??

Change History

Changed 3 years ago by alex94040

Hmmm. No idea. I don't think I've ever used this third param in my app... I've used forceInsert all the time, though.

Changed 3 years ago by dugokontov

$blnForceUpdate is used with Optimistic Locking. Code that uses $blnForceUpdate is generated in tables that has timestamp fileds

Changed 3 years ago by alex94040

  • status changed from new to infoneeded_new

So, is there anything actionable for this bug? Can we just close it?

Changed 3 years ago by scottux

dugokontov is right, you can use it to force a save even if there is another session locking the table. Not usually necessary, but no reason not to have it.

Changed 3 years ago by VexedPanda

  • status changed from infoneeded_new to closed
  • resolution set to invalid
Note: See TracTickets for help on using tickets.