src/ORM/DataObject.php
public function hasDatabaseField($field)
    {
        $spec = static::getSchema()->fieldSpec(static::class, $field, DataObjectSchema::DB_ONLY);
        return !empty($spec);
    }
public function hasDatabaseField($field)
    {
        $spec = static::getSchema()->fieldSpec(static::class, $field, DataObjectSchema::DB_ONLY);
        return !empty($spec);
    }
public function hasDatabaseField ( $ field ) { $ spec = static :: getSchema ( ) -> fieldSpec ( static :: class , $ field , DataObjectSchema :: DB_ONLY ) ; return ! empty ( $ spec ) ; }
Returns true if the given field exists as a database column

@param string $field Name of the field

@return boolean
Returns true if the given field exists as a database column