Commit 37a1408 1 parent 202c4a5 commit 37a1408 Copy full SHA for 37a1408
File tree 1 file changed +3
-3
lines changed
src/wcmf/lib/persistence/concurrency/impl
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -142,9 +142,9 @@ public function checkPersist(PersistentObject $object) {
142
142
$ mapper = $ this ->persistenceFacade ->getMapper ($ object ->getType ());
143
143
$ it = new NodeValueIterator ($ originalState , false );
144
144
foreach ($ it as $ valueName => $ originalValue ) {
145
- $ attribute = $ mapper ->getAttribute ($ valueName );
146
- // ignore references
147
- if (!($ attribute instanceof ReferenceDescription) && !($ attribute instanceof TransientAttributeDescription)) {
145
+ $ attribute = $ mapper ->hasAttribute ( $ valueName ) ? $ mapper -> getAttribute ($ valueName ) : null ;
146
+ // ignore references and transient values
147
+ if ($ attribute && !($ attribute instanceof ReferenceDescription) && !($ attribute instanceof TransientAttributeDescription)) {
148
148
$ currentValue = $ currentState ->getValue ($ valueName );
149
149
if (strval ($ currentValue ) != strval ($ originalValue )) {
150
150
if (self ::$ logger ->isDebugEnabled ()) {
You can’t perform that action at this time.
0 commit comments