silverstripe-framework/tests/model
stojg efa9ff9b08 API: Queries added by DataList::addInnerJoin() and DataList::leftJoin() come after the base joins, not before.
This bug will surface when using the ORM and adding an join to DataList
where a DataObject inherits another DataObject.

If you for example want to restrict the number of pages that only have a
related Staff object:

    $list = DataList::create('Page')
		->InnerJoin('Staff', '"Staff"."ID" = "Page"."StaffID");

This will create a SQL query where the INNER JOIN is before the
LEFT JOIN of Page and SiteTree in the resulting SQL string. In MySQL
and PostgreSQL this will create an invalid query.

This patch solves the problem by sorting the joins.
2012-12-11 11:04:29 +13:00
..
testimages ENHANCEMENT: use image file name (without file path and extension) for alt attribute when title is not provided 2009-05-24 12:16:17 +00:00
AggregateTest.php Fixed PHPUnit assertions for incomplete tests in core 2012-11-23 15:16:39 +01:00
AggregateTest.yml FEATURE: Add aggregate calculation to DataObject, allowing (cached) calculation of Max, Min, Count, Avg, etc (from r97390) 2010-04-12 05:04:34 +00:00
ArrayListTest.php Revert "BUGFIX: ArrayList now discards keys of the array passed in and keeps the numerically indexed array sequential." 2012-11-30 14:24:03 +01:00
ComponentSetTest.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
ComponentSetTest.yml MINOR Added ComponentSetTest 2010-02-22 04:37:32 +00:00
CompositeDBFieldTest.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
CurrencyTest.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
DatabaseTest.php Fixed PHPUnit assertions for incomplete tests in core 2012-11-23 15:16:39 +01:00
DataDifferencerTest.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
DataDifferencerTest.yml API-CHANGE sapphire folder can now be renamed. 2012-04-15 10:50:19 +12:00
DataExtensionTest.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
DataExtensionTest.yml API CHANGE: Renamed DataObjectDecorator to DataExtension. 2011-04-26 11:01:38 +10:00
DataListTest.php Sort lists that check ordering of results 2012-12-07 08:45:52 +13:00
DataObjectDuplicationTest.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
DataObjectLazyLoadingTest.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
DataObjectSchemaGenerationTest.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
DataObjectTest_Namespaced.php MINOR: Add test using a namespaced class for DataList::filter() and DataList::exclude() 2012-06-25 10:43:37 +12:00
DataObjectTest.php Fixed PHPUnit assertions for incomplete tests in core 2012-11-23 15:16:39 +01:00
DataObjectTest.yml ENHANCEMENT: Add lazy loading to DataQuery. 2012-04-30 16:12:15 +12:00
DataQueryTest.php API: Queries added by DataList::addInnerJoin() and DataList::leftJoin() come after the base joins, not before. 2012-12-11 11:04:29 +13:00
DateTest.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
DatetimeTest.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
DbDatetimeTest.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
DbDatetimeTest.yml MINOR Removed dependency on SiteTree in various unit tests 2011-03-29 18:07:58 +13:00
DBFieldTest.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
DBLocaleTest.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
DecimalTest.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
DecimalTest.yml API CHANGE Rearranged files in sapphire to reflect core dependencies more accurately, and have the tests/ folder mirror its folder structure 2011-03-31 09:56:21 +13:00
GroupedListTest.php MINOR Update @package values to match renaming sapphire 2012-04-15 10:50:19 +12:00
HasManyListTest.php MINOR Add newline to end of files without one 2012-04-15 10:50:19 +12:00
HierarchyTest.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
HierarchyTest.yml MINOR Removed dependency on SiteTree in various unit tests 2011-03-29 18:07:58 +13:00
HTMLTextTest.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
ImageTest.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
ImageTest.yml MINOR Fixing broken test on Windows 2012-05-04 22:48:47 +12:00
LabelFieldTest.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
ManyManyListTest.php BUG Retaining join extraFields on ManyManyList->add() 2012-10-03 14:58:28 +13:00
MapTest.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
MoneyTest.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
MoneyTest.yml FEATURE Added Money class for managing monetary amounts with currencies through the Money design pattern. Uses the CompositeDBField interface to contain multiple database columns in a single DBField 2009-05-05 08:10:51 +00:00
MySQLDatabaseTest.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
PaginatedListTest.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
PercentageTest.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
SQLQueryTest.php API: Queries added by DataList::addInnerJoin() and DataList::leftJoin() come after the base joins, not before. 2012-12-11 11:04:29 +13:00
SQLQueryTest.yml BUG Fixed issue with SQLQuery::lastRow crashing on empty set. Added test cases for lastRow and firstRow. 2012-11-16 13:27:51 +13:00
StringFieldTest.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
TextTest.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
TransactionTest.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
URLSegmentFilterTest.php Method visibility according to coding conventions 2012-09-20 10:46:59 +02:00
VersionedTest.php FIX Remove instances of lines longer than 120c 2012-09-30 17:18:13 +13:00
VersionedTest.yml MINOR Removed dependency on SiteTree in various unit tests 2011-03-29 18:07:58 +13:00