/**
* {@inheritDoc}
*/
public function initializeObject($document)
{
if (!is_object($document)) {
throw new InvalidArgumentException('Parameter $document needs to be an object, ' . gettype($document) . ' given');
}
$this->unitOfWork->initializeObject($document);
}