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

isNullable() public method

Check if the field is not null.
public isNullable ( string $fieldName ) : boolean
$fieldName string The field name
return boolean TRUE if the field is not null, FALSE otherwise.
    public function isNullable($fieldName)
    {
        $mapping = $this->getFieldMapping($fieldName);
        if ($mapping !== false) {
            return isset($mapping['nullable']) && $mapping['nullable'] == true;
        }
        return false;
    }
ClassMetadataInfo