silverstripe-framework/dev
Antony Thorpe 39d1ef7a4b Bugfix: BulkLoader_Result class - Deleted Items (#5598)
* Bugfix: BulkLoader_Result class - Deleted Items

The Deleted function, within BulkLoader_Result class, calls mapToArrayList, which tries to find the recently deleted dataobjects.
To correct:
- when calling addDeleted, store a map of each dataobject within the $this->deleted array; and,
- have the Deleted function return an ArrayList based upon the $this->deleted array.

* Added tests

- created a new test file for the BulkLoader_Result class
- included tests for other methods of this class
- slightly altered the addDeleted function to be consistent other methods of this class
2016-06-01 09:55:06 +12:00
..
install Merge remote-tracking branch 'origin/3.2' into 3.3 2016-02-24 17:29:06 +13:00
phpunit Add missing packages 2015-08-24 16:15:38 +12:00
Backtrace.php Filter PDO construct on failure 2016-03-30 11:35:15 +13:00
BehatFixtureFactory.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
BuildTask.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
BulkLoader.php Bugfix: BulkLoader_Result class - Deleted Items (#5598) 2016-06-01 09:55:06 +12:00
Cli.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
CliDebugView.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
CliTestReporter.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
CSSContentParser.php Merge remote-tracking branch 'origin/3.1' 2014-11-18 12:45:54 +13:00
CsvBulkLoader.php Merge remote-tracking branch 'origin/3.2' into 3 2015-11-03 13:06:39 +13:00
CSVParser.php Merge 3.1 into 3.2 2016-04-26 00:09:33 +01:00
Debug.php FIX Dont allow plain text friendly errors 2016-03-28 01:20:18 +01:00
DebugView.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
Deprecation.php API Disable deprecation notices by default 2015-07-16 09:56:47 +12:00
DevBuildController.php ENH making /dev extendable 2014-08-06 16:29:52 +12:00
DevelopmentAdmin.php [ss-2015-028] Block unauthenticated access to dev/build/defaults 2016-02-24 11:46:33 +13:00
FixtureBlueprint.php BUG Fix regression from #4396 in test fixtures 2015-10-29 17:36:38 +13:00
FixtureFactory.php Removing @deprecated 3.1 functionality and classes. 2014-08-18 16:00:13 +12:00
FunctionalTest.php Update FunctionalTest.php API notes 2015-03-04 18:38:43 +13:00
InstallerTest.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
JSTestRunner.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
Log.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
LogEmailWriter.php Set deprecation level for all changes in 3.x to 4.0 2015-06-19 13:07:41 +12:00
LogErrorEmailFormatter.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
LogErrorFileFormatter.php Adding defaults for unhandled event priorities in log formatters. 2014-02-24 15:41:03 +13:00
LogFileWriter.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
MigrationTask.php Unable to migrate down 2015-06-20 00:38:59 +12:00
Profiler.php Revert #3425 #3396 to restore deprecated functionality 2015-08-24 11:26:25 +12:00
SapphireInfo.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
SapphireREPL.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
SapphireTest.php Merge branch '3.1' into 3.2 2016-05-22 11:10:37 +01:00
SapphireTestReporter.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
SapphireTestSuite.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
SilverStripeListener.php Support PHPUnit 3.8+ compatibility 2014-08-22 13:43:23 +12:00
SysLogWriter.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
TaskRunner.php Allow abstract BuildTask subclasses (closes #4538) 2015-08-25 10:14:15 +01:00
TeamCityListener.php Merge remote-tracking branch 'origin/3.1' into 3.2 2015-09-09 14:35:29 +12:00
TestListener.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
TestMailer.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00
TestOnly.php MINOR Update @package values to match renaming sapphire 2012-04-15 10:50:19 +12:00
TestRunner.php Merge remote-tracking branch 'origin/3.1' into 3.2 2015-09-09 14:35:29 +12:00
TestSession.php Suggested improvements / test case fixes 2014-10-10 09:28:11 +13:00
YamlFixture.php Revert #3425 #3396 to restore deprecated functionality 2015-08-24 11:26:25 +12:00
ZendLog.php Remove all redundant whitespace 2014-08-19 09:17:15 +12:00