[FLOW3-general] The optimistic lock on an entity failed.
Thomas Allmer
at at delusionworld.com
Mon Apr 23 02:40:42 CEST 2012
hey Phoenix people,
I just have this fanzy error massage "The optimistic lock on an entity
failed."
and I guess it's telling me that I edited an property :p and well yeah
it's right...
function indexAction() {
$contentContext = new \TYPO3\TYPO3\Domain\Service\ContentContext('live');
$nodeToEdit = $contentContext->getNode('/sites/[...]/main/text1');
$nodeToEdit->setProperty('text', 'test');
// if I call persistAll or not doesn't matter
$this->persistenceManager->persistAll();
}
I actually want to edit this node.. but it's locked? anyone an idea why?
cheers
PS: Package based on latest flow3.org site.
PPS: I placed it in the index Action just for testing...
--
+---------------------------------+-----------------------------------+
| Thomas Allmer | http://www.delusionworld.com |
| E-mail: at at delusionworld.com | phone: +43 699 16217064 |
+---------------------------------+-----------------------------------+
More information about the FLOW3-general
mailing list