silverstripe-framework/tests/php/ORM
Guy Sartorelli 19bb72e7c7 FIX Correctly remove relations with ManyManyThroughList::removeall
Instead of just setting one side of the relation to null in the through
list, remove the rows entirely.
Remove only the relations which match the filters that have already been
set on the list.
This is consistent with the way ManyManyList works.

Also some small tidy-up (removing an unnecessary line break and an
unused "use" statement)
2022-05-05 11:21:51 +12:00
..
ArrayListTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
CascadeDeleteTest API Implement cascade_deletes 2017-08-09 15:14:00 +12:00
ComponentSetTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
DatabaseTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
DataExtensionTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
DataObjectDuplicationTest Merge branch '4.0' into 4.1 2018-06-08 23:05:24 +01:00
DataObjectSchemaGenerationTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
DataObjectSchemaTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
DataObjectTest NEW Add extension point to DataObject->hydrate() 2021-08-25 16:07:02 +12:00
DataQueryTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
DBClassNameTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
DBCompositeTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
DBHTMLTextTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
DBMoneyTest Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
DBStringTest Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
DBVarcharTest ENHANCEMENT Ensure DBVarchar scaffolds text field with TextField with appropriate max length 2017-10-26 16:21:51 +13:00
DecimalTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
FieldType FIX: Make all enums non-destructive, not just ClassName 2018-11-10 12:10:25 +13:00
Filters Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
HasManyListTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
HierarchyTest ENH Add tests for Hierarchy extension when applied to a subclass 2021-09-25 00:23:43 +12:00
ManyManyListTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
ManyManyThroughListTest BUGFIX many many through not sorting by join table (#8534) 2018-11-01 14:17:15 +13:00
MySQLDatabaseTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
MySQLiConnectorTest ENH Test coverage for MySQL connection collation 2020-08-30 13:21:38 +12:00
MySQLPDOConnectorTest ENH Test coverage for MySQL connection collation 2020-08-30 13:21:38 +12:00
RelatedDataServiceTest NEW DataObject related objects service 2020-10-29 09:29:26 +13:00
Search Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
SQLInsertTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
SQLSelectTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
SQLUpdateTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
TransactionTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
UniqueKey Unique key for DataObject (#9400) 2020-05-04 09:10:51 +12:00
UnsavedRelationListTest Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
ArrayLibTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
ArrayListTest.php FIX Bug when specifying 0 in ArrayList::offsetSet 2020-12-15 14:50:10 +13:00
CascadeDeleteTest.php API Rename assert dos to assert list 2017-10-09 11:53:11 +13:00
CascadeDeleteTest.yml API Implement cascade_deletes 2017-08-09 15:14:00 +12:00
ComponentSetTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
ComponentSetTest.yml
DatabaseTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
DataExtensionTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
DataExtensionTest.yml
DataListTest.php RFC Add chunk method to DataList to iterate over large dataset (#8940) 2021-04-14 07:49:44 +12:00
DataObjectDuplicationTest.php Merge branch '3.6' into 4.0 2018-06-08 14:41:04 +01:00
DataObjectDuplicationTest.yml API Implement cascade_duplications 2018-02-05 12:04:57 +13:00
DataObjectLazyLoadingTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
DataObjectSchemaGenerationTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
DataObjectSchemaTest.php BUG Fix writeBaseRecord with unique indexes 2019-02-27 16:40:12 +13:00
DataObjectTest.php NEW Add extension point to DataObject->hydrate() 2021-08-25 16:07:02 +12:00
DataObjectTest.yml NEW: Add Symfony 4 support alongside Symfony 3 2020-09-21 19:09:08 +12:00
DataQueryTest.php BUG Update DataQuery::exists to return false when limit causes no result to be returned (#9946) 2021-05-31 16:50:58 +12:00
DataQueryTest.yml Added unit tests for multiple relationship sorting 2019-07-29 10:45:10 -03:00
DBClassNameTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
DBCompositeTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
DBCurrencyTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
DBDateTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
DBDatetimeTest.php NEW: WithMockTime callback. 2020-08-06 11:18:39 +12:00
DBEnumTest.php FIX: Make all enums non-destructive, not just ClassName 2018-11-10 12:10:25 +13:00
DBFieldTest.php Fix unit test 2020-09-10 17:08:13 +12:00
DBHTMLTextTest.php Fix unit test 2020-09-10 17:08:13 +12:00
DBIntTest.php FIX Cast DBInt value to int 2021-07-06 16:43:54 +12:00
DBLocaleTest.php API Substitute Zend_Currency with NumberFormatter based solution 2017-02-09 15:28:59 +13:00
DBMoneyTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
DBMoneyTest.yml
DBPercentageTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
DBStringTest.php Fixing string concat CS issues 2018-01-16 18:39:30 +00:00
DBTest.php Fixing string concat CS issues 2018-01-16 18:39:30 +00:00
DBTextTest.php MNT Fix typos in test comments 2021-06-03 13:49:24 +12:00
DBTimeTest.php Cleanup SapphireTest and time related tests (#6898) 2017-05-18 22:01:55 +12:00
DBVarcharTest.php ENHANCEMENT Ensure DBVarchar scaffolds text field with TextField with appropriate max length 2017-10-26 16:21:51 +13:00
DBYearTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
DecimalTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
DecimalTest.yml
GroupedListTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
HasManyListTest.php NEW Add/remove callbacks on RelationList 2020-09-18 13:33:42 +12:00
HasManyListTest.yml Add tests for sorting HasManyList 2018-09-27 17:09:24 +02:00
HierarchyCachingTest.php MNT Fix broken test caused by missing table 2021-10-04 15:16:10 +13:00
HierarchyTest.php MNT Fix minor typos 2021-09-25 00:23:43 +12:00
HierarchyTest.yml ENH Add tests for Hierarchy extension when applied to a subclass 2021-09-25 00:23:43 +12:00
LabelFieldTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
ListDecoratorTest.php NEW Change to variadic calls in ListDecorator and add unit tests 2018-11-09 13:59:14 +02:00
ManyManyListExtensionTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
ManyManyListExtensionTest.yml
ManyManyListTest.php NEW Add/remove callbacks on RelationList 2020-09-18 13:33:42 +12:00
ManyManyThroughListTest.php FIX Correctly remove relations with ManyManyThroughList::removeall 2022-05-05 11:21:51 +12:00
ManyManyThroughListTest.yml FIX Correctly remove relations with ManyManyThroughList::removeall 2022-05-05 11:21:51 +12:00
MapTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
MarkedSetTest.php Fix the phpdoc blocks 2020-12-21 22:23:23 +01:00
MySQLDatabaseTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
MySQLDatabaseTest.yml
MySQLiConnectorTest.php FIX Remove extraneous @depends annotations 2020-09-15 17:40:42 +12:00
MySQLPDOConnectorTest.php FIX Remove extraneous @depends annotations 2020-09-15 17:40:42 +12:00
PaginatedListTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
PDODatabaseTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
PolymorphicHasManyListTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
RelatedDataServiceTest.php NEW DataObject related objects service 2020-10-29 09:29:26 +13:00
SQLInsertTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
SQLSelectTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
SQLSelectTest.yml
SQLUpdateTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
SQLUpdateTest.yml
TransactionTest.php NEW Introduce supported database transaction mode check 2019-09-16 14:44:15 +12:00
UnsavedRelationListTest.php Convert array delcarations to short array syntax 2020-04-20 18:58:09 +01:00
UnsavedRelationListTest.yml
URLSegmentFilterTest.php URLSegmentFilter: Remove : characters from url segments when multibyte characters are allowed. 2019-06-02 11:43:51 +03:00
ValidationExceptionTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00
ValidationResultTest.php Apply PSR2 / Namespace to remaining admin / tests 2016-12-19 16:08:19 +13:00