src/ORM/DataObjectSchema.php
public function fieldSpec($classOrInstance, $fieldName, $options = 0)
    {
        $specs = $this->fieldSpecs($classOrInstance, $options);
        return isset($specs[$fieldName]) ? $specs[$fieldName] : null;
    }
public function fieldSpec($classOrInstance, $fieldName, $options = 0)
    {
        $specs = $this->fieldSpecs($classOrInstance, $options);
        return isset($specs[$fieldName]) ? $specs[$fieldName] : null;
    }
public function fieldSpec ( $ classOrInstance , $ fieldName , $ options = 0 ) { $ specs = $ this -> fieldSpecs ( $ classOrInstance , $ options ) ; return isset ( $ specs [ $ fieldName ] ) ? $ specs [ $ fieldName ] : null ; }
Get specifications for a single class field

@param string|DataObject $classOrInstance Name or instance of class
@param string $fieldName Name of field to retrieve
@param int $options Bitmask of options
- UNINHERITED Limit to only this table
- DB_ONLY Exclude virtual fields (such as composite fields), and only include fields with a db column.
- INCLUDE_CLASS Prefix the field specification with the class name in RecordClass.Column(spec) format.

@return string|null Field will be a string in FieldClass(args) format, or
RecordClass.FieldClass(args) format if using INCLUDE_CLASS. Will be null if no field is found.
Get specifications for a single class field