Guy Sartorelli
3d79660662
Merge pull request #11348 from creative-commoners/pulls/6/replace-extension-subclasses
...
API Replace Extension subclasses
2024-08-29 17:18:07 +12:00
Steve Boyd
8ffda9edc0
API Replace Extension subclasses
2024-08-28 17:00:39 +12:00
Steve Boyd
cd4efcf95f
DEP Remove support for MySQL 5
2024-08-28 16:34:57 +12:00
Guy Sartorelli
ea93316d9c
API Strong typing for the view layer ( #11351 )
2024-08-28 10:54:31 +12:00
Guy Sartorelli
e1428f27a2
API Standardise extension hooks ( #11339 )
2024-08-27 15:39:20 +12:00
github-actions
0c9cceae57
Merge branch '5' into 6
2024-07-31 00:42:31 +00:00
github-actions
6c3a4e26de
Merge branch '5.2' into 5
2024-07-31 00:42:30 +00:00
Maxime Rainville
f91b279ef0
FIX Don't generate table alias for "from" statement that are not column names.
2024-07-30 08:36:27 +12:00
github-actions
cbc984eaf7
Merge branch '5' into 6
2024-06-20 03:09:22 +00:00
Guy Sartorelli
dcace43183
Merge branch '5.2' into 5
...
# Conflicts:
# src/Core/ClassInfo.php
# src/ORM/FieldType/DBForeignKey.php
2024-06-20 14:51:48 +12:00
Steve Boyd
620c1b0469
ENH Use class name instead of self
2024-06-18 09:37:39 +12:00
Steve Boyd
3e70cfed1e
API Set extension hook implementation visibility to protected
2024-05-21 09:51:51 +12:00
github-actions
c6aee6c5c7
Merge branch '5' into 6
2024-05-16 01:13:13 +00:00
github-actions
f60e1bc236
Merge branch '5.2' into 5
2024-05-16 01:13:12 +00:00
Guy Sartorelli
50a0018363
FIX many_many through should allow subclasses ( #11230 )
...
```php
class HomePage extends Page
{
private static $many_many = [
'HeroImages' => [
'through' => PageImageLink::class,
'from' => 'Page',
'to' => 'Image',
]
];
}
```
```php
class PageImageLink extends DataObject
{
private static $has_one = [
'Page' => SiteTree::class,
'Image' => Image::class,
];
}
This fails because the linking object's relation class doesn't exactly match the owner. Sharing the linking objects across various entries in the ancestry should be a supported use case.
Co-authored-by: Aaron Carlino <unclecheese@leftandmain.com>
2024-05-13 14:15:37 +12:00
github-actions
3c8f8b99e7
Merge branch '5' into 6
2024-05-11 14:24:49 +00:00
github-actions
4429a4999d
Merge branch '5.2' into 5
2024-05-11 14:24:47 +00:00
Dominik Beerbohm
0f6d210602
FIX Correctly eagerload polymorphic has_one relations ( #11204 )
2024-05-08 11:12:51 +12:00
Guy Sartorelli
a198c91628
FIX Don't throw exception for empty eagerloaded relation ( #11220 )
2024-05-06 18:06:54 +12:00
github-actions
d37c871883
Merge branch '5' into 6
2024-04-20 14:23:55 +00:00
github-actions
19ea32ebfa
Merge branch '5.2' into 5
2024-04-20 14:23:53 +00:00
Guy Sartorelli
dcc6863401
NEW Allow skipping validation on write ( #11202 )
2024-04-19 10:35:36 +12:00
Dominik Beerbohm
135f9c6d30
FIX Ensure eagerLoading don't load has_one twice ( #11170 )
2024-04-18 13:27:50 +12:00
Guy Sartorelli
25f61141cb
Enhancements required for linkfield migration ( #11171 )
...
* ENH Add lightweight test override for Environment::isCli()
* NEW Allow JOIN with SQL UPDATE.
2024-03-20 11:49:57 +13:00
Guy Sartorelli
528344d1b0
NEW Allow manipulating eagerloading queries ( #11140 )
2024-02-20 16:17:31 +13:00
github-actions
7e30e38ae6
Merge branch '5.1' into 5
2024-02-14 22:58:30 +00:00
Guy Sartorelli
d33332cb9e
FIX Add eagerloaded data to ALL relevant lists ( #11139 )
2024-02-15 11:57:22 +13:00
Guy Sartorelli
5e53dbcdbc
NEW Add a trace comment for queries in dev mode ( #11065 )
2024-02-08 16:29:55 +13:00
Guy Sartorelli
bf629dfabd
ENH Split sentences by configurable punctuation for summary
...
Co-authored-by: Lukas Erni <le@kraftausdruck.ch>
2023-12-20 15:08:01 +13:00
Maxime Rainville
6c69d32367
Merge pull request #11049 from creative-commoners/pulls/5/gridfield-with-viewabledata
...
Make GridField components work with ViewableData where possible
2023-12-19 19:55:29 +13:00
Guy Sartorelli
7073246a37
MNT Add tests for using GridField with arbitrary data
...
Note that the main tests are added as behat tests in the admin module
2023-12-18 14:20:33 +13:00
Guy Sartorelli
c405ed6cf3
NEW Allow a single has_one to manage multiple reciprocal has_many ( #11084 )
2023-12-12 10:18:25 +13:00
github-actions
c890d79ea9
Merge branch '5.1' into 5
2023-12-09 14:24:25 +00:00
github-actions
bf45b0c44b
Merge branch '4' into 5.1
2023-12-09 14:24:24 +00:00
Loz Calver
e28af9a5a7
FIX: UnsavedRelationList first/last to return null if list is empty ( fixes #11083 )
2023-12-04 11:32:08 +00:00
Guy Sartorelli
f81439521f
MNT Add sort order to unit test so it passes with mariadb
2023-11-28 20:54:38 +13:00
github-actions
cb520db8b7
Merge branch '5.1' into 5
2023-11-01 20:14:50 +00:00
Sabina Talipova
56511c8618
MNT Remove TODO comments
2023-10-30 13:21:09 +13:00
Guy Sartorelli
cbd358ab93
MNT Test that we can't filter/sort eagerloaded data by relation ( #10978 )
2023-10-18 09:36:41 +13:00
Guy Sartorelli
44b170098e
NEW Add ORM abstraction for "WITH" clauses ( #10943 )
2023-10-02 15:25:14 +13:00
github-actions
11c0198b9d
Merge branch '5.1' into 5
2023-09-30 14:24:05 +00:00
github-actions
cf78a9d785
Merge branch '5.0' into 5.1
2023-09-30 14:24:03 +00:00
github-actions
3d60e1e77e
Merge branch '4' into 5.0
2023-09-30 14:24:00 +00:00
Guy Sartorelli
7d5c62ed5f
NEW Add rightJoin method to DataList ( #10961 )
2023-09-27 15:24:32 +13:00
Guy Sartorelli
55e42683f8
FIX Match multi-line JOIN statements ( #10960 )
2023-09-26 10:30:55 +13:00
Guy Sartorelli
7bb72eb7c5
FIX Ensure all fixed fields are added
2023-09-25 15:35:34 +13:00
Guy Sartorelli
76da701b6b
NEW Add sql UNION abstraction
2023-09-25 12:33:30 +13:00
Guy Sartorelli
fac3356739
ENH Enable allowing collisions for field statements ( #10957 )
2023-09-25 12:32:40 +13:00
Guy Sartorelli
bbc0295f86
NEW Add abstraction for sql RIGHT JOIN ( #10954 )
2023-09-25 12:32:26 +13:00
Guy Sartorelli
b28749db44
ENH Allow selecting multiple (or no) tables ( #10953 )
2023-09-25 12:32:19 +13:00