2323use umi \orm \manager \TObjectManagerAware ;
2424use umi \orm \metadata \field \IField ;
2525use umi \orm \metadata \field \relation \ManyToManyRelationField ;
26- use umi \orm \metadata \field \special \FormulaField ;
26+ use umi \orm \metadata \field \special \DelayedField ;
2727use umi \orm \metadata \IMetadata ;
2828use umi \orm \metadata \IObjectType ;
2929use umi \orm \object \IObject ;
@@ -415,15 +415,15 @@ public function persistNewObject(IObject $object)
415415 /**
416416 * {@inheritdoc}
417417 */
418- public function persistRecalculatedObject (IObject $ object , array $ formulaProperties )
418+ public function persistRecalculatedObject (IObject $ object , array $ delayedProperties )
419419 {
420420 if (!$ this ->contains ($ object )) {
421421 throw new NotAllowedOperationException ($ this ->translate (
422422 'Cannot persist modified object. Object from another collection given. '
423423 ));
424424 }
425- if (count ($ formulaProperties )) {
426- $ this ->executeUpdate ($ object , $ formulaProperties );
425+ if (count ($ delayedProperties )) {
426+ $ this ->executeUpdate ($ object , $ delayedProperties );
427427 }
428428 }
429429
@@ -439,18 +439,18 @@ public function persistModifiedObject(IObject $object)
439439 }
440440
441441 $ modifiedProperties = [];
442- $ formulaProperties = [];
442+ $ delayedProperties = [];
443443
444444 foreach ($ object ->getModifiedProperties ()as $ property ) {
445- if ($ property ->getField () instanceof FormulaField ) {
446- $ formulaProperties [] = $ property ;
445+ if ($ property ->getField () instanceof DelayedField ) {
446+ $ delayedProperties [] = $ property ;
447447 } else {
448448 $ modifiedProperties [] = $ property ;
449449 }
450450 }
451451
452- if ($ formulaProperties ) {
453- $ this ->getObjectPersister ()->storeRecalculatedObject ($ object , $ formulaProperties );
452+ if ($ delayedProperties ) {
453+ $ this ->getObjectPersister ()->storeRecalculatedObject ($ object , $ delayedProperties );
454454 }
455455
456456 if (count ($ modifiedProperties )) {
0 commit comments