DDC-1142: Cache affecting Doctrine\ORM\Persisters\BasicEntityPersister::_prepareUpdateData() #1435

Closed
opened 2026-01-22 13:14:17 +01:00 by admin · 4 comments
Owner

Originally created by @doctrinebot on GitHub (May 10, 2011).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user raiz:

Doctrine\ORM\Persisters\BasicEntityPersister::_prepareUpdateData()
Differing behaviour on line 460 if (isset($this->_class->associationMappings[$field])) {

Dependand on the prepopulation of $this->_class->associationMappings.
If you are using the \Doctrine\Common\Cache\ArrayCache (every request) or \Doctrine\Common\Cache\MemcacheCache (only on the first request after restart)
$this->_class->associationMappings[ $field] is set.

Subsequent calls when using memcache wil have $this->_class->associationMappings[$field] NOT set & hence differing behaviour.
result: irregular updates of associations

Originally created by @doctrinebot on GitHub (May 10, 2011). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user raiz: Doctrine\ORM\Persisters\BasicEntityPersister::_prepareUpdateData() Differing behaviour on line 460 if (isset($this->_class->associationMappings[$field])) { Dependand on the prepopulation of $this->_class->associationMappings. If you are using the \Doctrine\Common\Cache\ArrayCache (every request) or \Doctrine\Common\Cache\MemcacheCache (only on the first request after restart) $this->_class->associationMappings[ $field] is set. Subsequent calls when using memcache wil have $this->_class->associationMappings[$field] NOT set & hence differing behaviour. result: irregular updates of associations
admin added the Bug label 2026-01-22 13:14:17 +01:00
admin closed this issue 2026-01-22 13:14:18 +01:00
Author
Owner

@doctrinebot commented on GitHub (May 14, 2011):

Comment created by @beberlei:

Why have subsequent calls with memcache $this->_class->associationMappings[$field] not set? This should not be happening

@doctrinebot commented on GitHub (May 14, 2011): Comment created by @beberlei: Why have subsequent calls with memcache $this->_class->associationMappings[$field] not set? This should not be happening
Author
Owner

@doctrinebot commented on GitHub (Dec 28, 2011):

Comment created by @beberlei:

note to myself: Maybe a windows + memcache, wampserver issue?

@doctrinebot commented on GitHub (Dec 28, 2011): Comment created by @beberlei: note to myself: Maybe a windows + memcache, wampserver issue?
Author
Owner

@doctrinebot commented on GitHub (Mar 15, 2012):

Comment created by @asm89:

Cannot really reproduce this and no additional feedback was provided.

-> close

@doctrinebot commented on GitHub (Mar 15, 2012): Comment created by @asm89: Cannot really reproduce this and no additional feedback was provided. -> close
Author
Owner

@doctrinebot commented on GitHub (Mar 15, 2012):

Issue was closed with resolution "Cannot Reproduce"

@doctrinebot commented on GitHub (Mar 15, 2012): Issue was closed with resolution "Cannot Reproduce"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1435