silverstripe-framework/_config/model.yml
Sam Minnee aeccb8b8e0 API: Move DBField subclasses into SilverStripe\Model\FieldType namespace
API: Deprecate SS_Datetime.

The DBField subclasses are have all been renamed to start with “DB” and
be in the SilverStripe\Model\FieldType namespace. To keep DataObject
definitions concise, the original short variations of their names are
preserved as service definitions. Most of the field generation code
doesn’t need to change, but where field classes are referenced directly,
changes will be needed.

SS_Datetime, which is commonly referenced outside the model system
itself, has been preserved as a subclass of DBDatetime. This has been
marked as deprecated and can be removed in SilverStripe 5.

A few places that referred to $db and $casting values weren’t using
the Injector to instantiate the relevant classes. This meant that the
remapping we have created as part of moving classes into a namespace
didn’t work.
2016-03-22 18:09:30 +13:00

54 lines
1.6 KiB
YAML

Injector:
Boolean:
class: SilverStripe\Model\FieldType\DBBoolean
Currency:
class: SilverStripe\Model\FieldType\DBCurrency
DBClassName:
class: SilverStripe\Model\FieldType\DBClassName
Date:
class: SilverStripe\Model\FieldType\DBDate
Datetime:
class: SilverStripe\Model\FieldType\DBDatetime
SS_Datetime:
class: SilverStripe\Model\FieldType\DBDatetime
Decimal:
class: SilverStripe\Model\FieldType\DBDecimal
Double:
class: SilverStripe\Model\FieldType\DBDouble
Enum:
class: SilverStripe\Model\FieldType\DBEnum
DBFile:
class: SilverStripe\Filesystem\Storage\DBFile
Float:
class: SilverStripe\Model\FieldType\DBFloat
ForeignKey:
class: SilverStripe\Model\FieldType\DBForeignKey
HTMLText:
class: SilverStripe\Model\FieldType\DBHTMLText
HTMLVarchar:
class: SilverStripe\Model\FieldType\DBHTMLVarchar
Int:
class: SilverStripe\Model\FieldType\DBInt
Locale:
class: SilverStripe\Model\FieldType\DBLocale
DBLocale:
class: SilverStripe\Model\FieldType\DBLocale
Money:
class: SilverStripe\Model\FieldType\DBMoney
MultiEnum:
class: SilverStripe\Model\FieldType\DBMultiEnum
Percentage:
class: SilverStripe\Model\FieldType\DBPercentage
PolymorphicForeignKey:
class: SilverStripe\Model\FieldType\DBPolymorphicForeignKey
PrimaryKey:
class: SilverStripe\Model\FieldType\DBPrimaryKey
Text:
class: SilverStripe\Model\FieldType\DBText
Time:
class: SilverStripe\Model\FieldType\DBTime
Varchar:
class: SilverStripe\Model\FieldType\DBVarchar
Year:
class: SilverStripe\Model\FieldType\DBYear