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

setIdentifierValue() public method

The value will be converted to a PHP type before being set.
public setIdentifierValue ( object $document, mixed $id )
$document object
$id mixed
    public function setIdentifierValue($document, $id)
    {
        $id = $this->getPHPIdentifierValue($id);
        $this->reflFields[$this->identifier]->setValue($document, $id);
    }
ClassMetadataInfo