public getReferencedDocument ( string $name ) : null | |
||
$name | string | name of field where reference stored |
Результат | null | |
public function getReferencedDocument($name)
{
$reference = $this->get($name);
if (null === $reference) {
return null;
}
return $this->collection->getDatabase()->getDocumentByReference($reference);
}