You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**`SelectQueryFindListReturnTypeExtension`**: Provides proper return type inference for `find('list')->toArray()`, returning `array<int|string, string>` instead of the generic entity array type. Works with chained queries (`where()`, `orderBy()`, `limit()`, etc.).
8
+
-**`groupField` support for `find('list')`**: When `groupField` is provided to `find('list')`, the return type is correctly inferred as `array<int|string, array<int|string, string>>`.
9
+
-**Custom application namespace**: Support for defining a custom application namespace via the `cakeDC.appNamespace` configuration parameter (defaults to `App`).
10
+
11
+
### Improvements
12
+
13
+
- Made constructor dependency in rules/extensions optional to preserve backwards compatibility; instances self-instantiate if none is provided.
1. Provide correct return type for `Cake\ORM\Table::get` based on your table class name
51
72
1. Provide correct return type for `Cake\ORM\Table::newEntity` based on your table class name
@@ -216,6 +237,20 @@ parameters:
216
237
addAssociationExistsTableClassRule: false
217
238
```
218
239
240
+
# Configuration
241
+
242
+
### Custom application namespace
243
+
244
+
By default, this extension assumes your application uses the `App` namespace. If your application uses a custom namespace, configure it with the `appNamespace` parameter:
245
+
246
+
```
247
+
parameters:
248
+
cakeDC:
249
+
appNamespace: MyApp
250
+
```
251
+
252
+
This affects class resolution in rules and type extensions (e.g. `MyApp\Model\Table\UsersTable` instead of `App\Model\Table\UsersTable`).
253
+
219
254
# PHPDoc Extensions
220
255
### TableAssociationTypeNodeResolverExtension
221
256
Fix intersection association phpDoc to correct generic object type, ex:
0 commit comments