Skip to content

Commit d6b22e4

Browse files
committed
adjust docs
1 parent c2f7d19 commit d6b22e4

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

docs/en/appendices/5-4-migration-guide.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,25 @@ bin/cake upgrade rector --rules cakephp54 <path/to/app/src>
1616

1717
## Behavior Changes
1818

19+
### Commands
20+
21+
- `BaseCommand::initialize()` is now being triggered **AFTER** arguments and options have been parsed.
22+
1923
### I18n
2024

21-
`Number::parseFloat()` now returns `null` instead of `0.0` when parsing
22-
fails. This also affects `FloatType` and `DecimalType` database types.
25+
- `Number::parseFloat()` now returns `null` instead of `0.0` when parsing
26+
fails. This also affects `FloatType` and `DecimalType` database types.
2327

2428
### ORM
2529

26-
The default eager loading strategy for `HasMany` and `BelongsToMany` associations
27-
has changed from `select` to `subquery`. If you need the previous behavior,
28-
explicitly set `'strategy' => 'select'` when defining associations.
30+
- The default eager loading strategy for `HasMany` and `BelongsToMany` associations
31+
has changed from `select` to `subquery`. If you need the previous behavior,
32+
explicitly set `'strategy' => 'select'` when defining associations.
2933

3034
### Controller
3135

32-
Loading a component with the same alias as the controller's default table now
33-
triggers a warning. See [Component Alias Conflicts](../controllers/components#component-alias-conflicts).
36+
- Loading a component with the same alias as the controller's default table now
37+
triggers a warning. See [Component Alias Conflicts](../controllers/components#component-alias-conflicts).
3438

3539
## Deprecations
3640

@@ -50,7 +54,6 @@ triggers a warning. See [Component Alias Conflicts](../controllers/components#co
5054

5155
### Commands
5256

53-
- `BaseCommand::initialize()` is now being triggered **AFTER** arguments and options have been parsed.
5457
- You can use `$this->io` and `$this->args` inside your commands to access input/output and argument objects
5558
without needing to pass them down from the `execute()` method. **This will be the default in CakePHP 6.0**
5659
as those arguments will be removed from the `execute()` method signature.

0 commit comments

Comments
 (0)