getOrCreateProxy() public method

Get the existing document or proxy for this id of this class, or create a new one.
public getOrCreateProxy ( string $targetId, string $className, string $locale = null ) : object
$targetId string
$className string
$locale string
return object
Exemplo n.º 1
0
 /**
  * {@inheritDoc}
  */
 public function getReference($documentName, $id)
 {
     return $this->unitOfWork->getOrCreateProxy($id, $documentName);
 }