- تاریخ ثبتنام
- 2020-06-26
- نوشتهها
- 21,408
- راهحلها
- 27
- پسندها
- 3,264
- امتیازها
- 113
- سن
- 27
- محل سکونت
- England
- وب سایت
- xenforo.xyz
Problem: If you call
Proof of concept:
PHP:
$entity->preSave()
, \XF\Mvc\Entity\Entity::$_writePending
is set to true
. If you subsequently call $entity->saveIfChanged()
, and no changes are detected, you cannot write to the entity later, unless you manually call $entity->reset()
.Proof of concept:
PHP: