lib/Doctrine/ORM/EntityManager.php
public function refresh($entity)
    {
        if (! is_object($entity)) {
            throw ORMInvalidArgumentException::invalidObject('EntityManager#refresh()', $entity);
        }

        $this->errorIfClosed();

        $this->unitOfWork->refresh($entity);
    }
public function refresh($entity)
    {
        if (! is_object($entity)) {
            throw ORMInvalidArgumentException::invalidObject('EntityManager#refresh()', $entity);
        }

        $this->errorIfClosed();

        $this->unitOfWork->refresh($entity);
    }
public function refresh ( $ entity ) { if ( ! is_object ( $ entity ) ) { throw ORMInvalidArgumentException :: invalidObject ( 'EntityManager#refresh()' , $ entity ) ; } $ this -> errorIfClosed ( ) ; $ this -> unitOfWork -> refresh ( $ entity ) ; }
Refreshes the persistent state of an entity from the database,
overriding any local changes that have not yet been persisted.

@param object $entity The entity to refresh.

@throws ORMInvalidArgumentException
@throws ORMException
Refreshes the persistent state of an entity from the database overriding any local changes that have not yet been persisted .