Cake\ElasticSearch\Datasource\MappingSchema::fieldType PHP 메소드

fieldType() 공개 메소드

Can access nested fields through dot paths.
public fieldType ( string $name ) : string | null
$name string The path to the field you want.
리턴 string | null Either type information or null
    public function fieldType($name)
    {
        $field = $this->field($name);
        if (!$field) {
            return null;
        }
        return $field['type'];
    }