src/wcmf/lib/persistence/impl/DefaultTransaction.php
protected function registerDirty(PersistentObject $object) {
    $key = $object->getOID()->__toString();
    // if it was a new or deleted object, we return immediatly
    if (isset($this->newObjects[$key]) || isset($this->deletedObjects[$key])) {
      return $object;
    }
    if (self::$isDebugEnabled) {
      self::$logger->debug("Register dirty object: ".$key);
    }
    $this->dirtyObjects[$key] = $object;
    return $object;
  }
protected function registerDirty(PersistentObject $object) {
    $key = $object->getOID()->__toString();
    // if it was a new or deleted object, we return immediatly
    if (isset($this->newObjects[$key]) || isset($this->deletedObjects[$key])) {
      return $object;
    }
    if (self::$isDebugEnabled) {
      self::$logger->debug("Register dirty object: ".$key);
    }
    $this->dirtyObjects[$key] = $object;
    return $object;
  }
protected function registerDirty ( PersistentObject $ object ) { $ key = $ object -> getOID ( ) -> __toString ( ) ; // if it was a new or deleted object, we return immediatly if ( isset ( $ this -> newObjects [ $ key ] ) || isset ( $ this -> deletedObjects [ $ key ] ) ) { return $ object ; } if ( self :: $ isDebugEnabled ) { self :: $ logger -> debug ( "Register dirty object: " . $ key ) ; } $ this -> dirtyObjects [ $ key ] = $ object ; return $ object ; }
Register a dirty object. The returned object is the registered instance.
@param $object PersistentObject instance
Register a dirty object . The returned object is the registered instance .