src/wcmf/lib/i18n/impl/DefaultLocalization.php
public function afterCreate(PersistenceEvent $event) {
    if ($event->getAction() == PersistenceAction::CREATE) {
      $oldOid = $event->getOldOid();
      $oldOidStr = $oldOid != null ? $oldOid->__toString() : null;
      if ($oldOidStr != null && isset($this->createdTranslations[$oldOidStr])) {
        foreach ($this->createdTranslations[$oldOidStr] as $translation) {
          $translation->setValue('objectid', $event->getObject()->getOID()->__toString());
        }
      }
    }
  }
public function afterCreate(PersistenceEvent $event) {
    if ($event->getAction() == PersistenceAction::CREATE) {
      $oldOid = $event->getOldOid();
      $oldOidStr = $oldOid != null ? $oldOid->__toString() : null;
      if ($oldOidStr != null && isset($this->createdTranslations[$oldOidStr])) {
        foreach ($this->createdTranslations[$oldOidStr] as $translation) {
          $translation->setValue('objectid', $event->getObject()->getOID()->__toString());
        }
      }
    }
  }
public function afterCreate ( PersistenceEvent $ event ) { if ( $ event -> getAction ( ) == PersistenceAction :: CREATE ) { $ oldOid = $ event -> getOldOid ( ) ; $ oldOidStr = $ oldOid != null ? $ oldOid -> __toString ( ) : null ; if ( $ oldOidStr != null && isset ( $ this -> createdTranslations [ $ oldOidStr ] ) ) { foreach ( $ this -> createdTranslations [ $ oldOidStr ] as $ translation ) { $ translation -> setValue ( 'objectid' , $ event -> getObject ( ) -> getOID ( ) -> __toString ( ) ) ; } } } }
Update oids after create
@param $event
Update oids after create