Doctrine\ODM\MongoDB\Mapping\ClassMetadataInfo::getIdentifierObject PHP Method

getIdentifierObject() public method

Get the document identifier object as a database type.
public getIdentifierObject ( object $document ) : MongoId
$document object
return MongoId $id The MongoID object.
    public function getIdentifierObject($document)
    {
        return $this->getDatabaseIdentifierValue($this->getIdentifierValue($document));
    }
ClassMetadataInfo