mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Simplified definition on Money::$composite_db - the ORM doesn't handle array-style definitions currently, which means DataObject::custom_database_fields() etc. will fail
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@78234 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
0298ee7d7a
commit
e1e9295fb5
@ -59,8 +59,8 @@ class Money extends DBField implements CompositeDBField {
|
||||
* @param array
|
||||
*/
|
||||
static $composite_db = array(
|
||||
"Currency" => "Varchar(3) null",
|
||||
"Amount" => Array('type'=>'decimal', 'parts'=>Array('datatype'=>'decimal', 'precision'=>"19,4"), 'default' => '0'),
|
||||
"Currency" => "Varchar(3)",
|
||||
"Amount" => 'Decimal(19,4)'
|
||||
);
|
||||
|
||||
function __construct($name = null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user