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

getPHPIdentifierValue() public method

Casts the identifier to its portable PHP type.
public getPHPIdentifierValue ( mixed $id ) : mixed
$id mixed
return mixed $id
    public function getPHPIdentifierValue($id)
    {
        $idType = $this->fieldMappings[$this->identifier]['type'];
        return Type::getType($idType)->convertToPHPValue($id);
    }
ClassMetadataInfo