silverstripe-framework/model
Fred Condo ea7b94206d FIX: Enable $forceWrite argument of DataObject#write()
$forceWrite was being ignored because it was tested in a part of the
code that is reachable if and only if there are changes to the object.
This patch adds an additional test to correct that logic error.

Also, refrain from needlessly checking for changes when $forceWrite is
true.

Fixes #1687
2013-05-03 16:29:33 -07:00
..
fieldtypes Remove duplicate functionality between float and double 2013-04-17 17:35:59 +12:00
Aggregate.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
ArrayList.php Merge remote-tracking branch 'origin/3.0' into 3.1 2013-01-30 12:46:24 +01:00
Database.php Clearer docs on where SQL strings are expected to be escaped already 2013-04-03 12:11:53 +02:00
DatabaseAdmin.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
DataDifferencer.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
DataExtension.php Removed unused DataExtension::$extendable_statics 2013-03-27 16:09:17 +01:00
DataList.php API Data corruption on Versioned due to lazy loading 2013-02-14 14:28:42 +01:00
DataModel.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
DataObject.php FIX: Enable $forceWrite argument of DataObject#write() 2013-05-03 16:29:33 -07:00
DataObjectInterface.php Removing deprecated instance_get_one() and instance_get() 2012-11-15 14:43:19 +13:00
DataQuery.php Merge remote-tracking branch 'origin/3.0' into 3.1 2013-04-09 14:45:35 +02:00
DB.php Fixed whitespace usage 2013-02-18 15:43:52 +01:00
Filterable.php API Make DataList and ArrayList immutable 2012-12-14 13:30:35 +13:00
GroupedList.php Fixed usage of DataList etc in docs (fixes #7518) 2012-06-27 16:09:31 +02:00
HasManyList.php API Make DataList and ArrayList immutable 2012-12-14 13:30:35 +13:00
HiddenClass.php MINOR Update @package values to match renaming sapphire 2012-04-15 10:50:19 +12:00
Hierarchy.php NEW Enforce max node counts to avoid excessive resource usage 2013-04-09 10:24:18 +12:00
HTMLValue.php FIX We still need XML escaping on href attributes in HTML4Value 2013-04-18 09:13:24 +12:00
Image_Backend.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
Image.php API: used call_user_func_array in order to have an arbitrary number of parameter for getFormattedImage (fixes #1752) 2013-04-11 16:51:36 +02:00
Limitable.php API Make DataList and ArrayList immutable 2012-12-14 13:30:35 +13:00
List.php NEW: Add new method "each" to SS_List and core implementors thereof 2012-11-02 18:21:02 -07:00
ListDecorator.php NEW: Add new method "each" to SS_List and core implementors thereof 2012-11-02 18:21:02 -07:00
ManyManyList.php BUG Don't sort when deleting records in ManyManyList::removeAll() 2013-04-05 11:50:25 +13:00
Map.php return $this, for do things like this: new DropdownField('XPTOName', 'XPTO Label', XPTOModel::get()->map("ID", "Name")->unshift(0,'- Select -')) 2012-11-30 01:37:36 +00:00
MySQLDatabase.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
RelationList.php API Make DataList and ArrayList immutable 2012-12-14 13:30:35 +13:00
Sortable.php API Make DataList and ArrayList immutable 2012-12-14 13:30:35 +13:00
SQLMap.php Scoped deprecation messages (fixes #7645) 2012-07-13 11:37:35 +02:00
SQLQuery.php FIX Empty fields on SQLQuery->aggregate() with alias 2013-04-03 12:22:12 +02:00
Transliterator.php API Marked statics private, use Config API instead (#8317) 2013-03-24 17:20:53 +01:00
UnsavedRelationList.php Define getIDList on UnsavedRelationList 2013-03-08 12:34:52 +13:00
URLSegmentFilter.php API: Don't allow dots in URL segments 2013-03-30 19:47:17 +11:00
ValidationException.php BUG Enforced requirement that ValidationException::getResult() is expected to consistently produce a valid ValidationResult object. 2013-03-15 13:56:43 +13:00
ValidationResult.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
Versioned.php Merge remote-tracking branch 'origin/3.0' into 3.1 2013-04-09 14:45:35 +02:00