src/ORM/FieldType/DBClassName.php
public function getBaseClass()
    {
        // Use explicit base class
        if ($this->baseClass) {
            return $this->baseClass;
        }
        // Default to the basename of the record
        $schema = DataObject::getSchema();
        if ($this->record) {
            return $schema->baseDataClass($this->record);
        }
        // During dev/build only the table is assigned
        $tableClass = $schema->tableClass($this->getTable());
        if ($tableClass && ($baseClass = $schema->baseDataClass($tableClass))) {
            return $baseClass;
        }
        // Fallback to global default
        return DataObject::class;
    }
public function getBaseClass()
    {
        // Use explicit base class
        if ($this->baseClass) {
            return $this->baseClass;
        }
        // Default to the basename of the record
        $schema = DataObject::getSchema();
        if ($this->record) {
            return $schema->baseDataClass($this->record);
        }
        // During dev/build only the table is assigned
        $tableClass = $schema->tableClass($this->getTable());
        if ($tableClass && ($baseClass = $schema->baseDataClass($tableClass))) {
            return $baseClass;
        }
        // Fallback to global default
        return DataObject::class;
    }
public function getBaseClass ( ) { // Use explicit base class if ( $ this -> baseClass ) { return $ this -> baseClass ; } // Default to the basename of the record $ schema = DataObject :: getSchema ( ) ; if ( $ this -> record ) { return $ schema -> baseDataClass ( $ this -> record ) ; } // During dev/build only the table is assigned $ tableClass = $ schema -> tableClass ( $ this -> getTable ( ) ) ; if ( $ tableClass && ( $ baseClass = $ schema -> baseDataClass ( $ tableClass ) ) ) { return $ baseClass ; } // Fallback to global default return DataObject :: class ; }
Get the base dataclass for the list of subclasses

@return string
Get the base dataclass for the list of subclasses