Commit 1299e838 authored by romanb's avatar romanb

[2.0] Fixed docblock and return value from previous commit.

parent ae1b9371
......@@ -1311,15 +1311,15 @@ class UnitOfWork implements PropertyChangedListener
}
/**
* Refreshes the state of the given entity from the database, overwriting
* any local, unpersisted changes.
*
*
* @param $entity
* @return unknown_type
* @param object $entity The entity to refresh.
*/
public function refresh($entity)
{
$visited = array();
return $this->_doRefresh($entity, $visited);
$this->_doRefresh($entity, $visited);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment