Doctrine\ODM\PHPCR\Mapping\ClassMetadata::isNullable PHP Метод

isNullable() публичный Метод

Check if the field is nullable or not.
public isNullable ( string $fieldName ) : boolean
$fieldName string The field name
Результат boolean TRUE if the field is nullable, FALSE otherwise.
    public function isNullable($fieldName)
    {
        $mapping = $this->getFieldMapping($fieldName);
        if ($mapping !== false) {
            return isset($mapping['nullable']) && true == $mapping['nullable'];
        }
        return false;
    }
ClassMetadata