lib/Doctrine/ORM/UnitOfWork.php
public function scheduleForUpdate($entity) : void
    {
        $oid = spl_object_id($entity);

        if (! isset($this->entityIdentifiers[$oid])) {
            throw ORMInvalidArgumentException::entityHasNoIdentity($entity, 'scheduling for update');
        }

        if (isset($this->entityDeletions[$oid])) {
            throw ORMInvalidArgumentException::entityIsRemoved($entity, 'schedule for update');
        }

        if (! isset($this->entityUpdates[$oid]) && ! isset($this->entityInsertions[$oid])) {
            $this->entityUpdates[$oid] = $entity;
        }
    }
public function scheduleForUpdate($entity) : void
    {
        $oid = spl_object_id($entity);

        if (! isset($this->entityIdentifiers[$oid])) {
            throw ORMInvalidArgumentException::entityHasNoIdentity($entity, 'scheduling for update');
        }

        if (isset($this->entityDeletions[$oid])) {
            throw ORMInvalidArgumentException::entityIsRemoved($entity, 'schedule for update');
        }

        if (! isset($this->entityUpdates[$oid]) && ! isset($this->entityInsertions[$oid])) {
            $this->entityUpdates[$oid] = $entity;
        }
    }
public function scheduleForUpdate ( $ entity ) : void { $ oid = spl_object_id ( $ entity ) ; if ( ! isset ( $ this -> entityIdentifiers [ $ oid ] ) ) { throw ORMInvalidArgumentException :: entityHasNoIdentity ( $ entity , 'scheduling for update' ) ; } if ( isset ( $ this -> entityDeletions [ $ oid ] ) ) { throw ORMInvalidArgumentException :: entityIsRemoved ( $ entity , 'schedule for update' ) ; } if ( ! isset ( $ this -> entityUpdates [ $ oid ] ) && ! isset ( $ this -> entityInsertions [ $ oid ] ) ) { $ this -> entityUpdates [ $ oid ] = $ entity ; } }
Schedules an entity for being updated.

@param object $entity The entity to schedule for being updated.

@throws ORMInvalidArgumentException
Schedules an entity for being updated .