Commit a7c8e45
Jamison Bryant
Fix CakePHP 5.3 compatibility in ModelPropertyFactory
Use public API methods instead of __debugInfo() for accessing column
metadata and primary key information. In CakePHP 5.3, TableSchema
stores columns and constraints as objects rather than arrays, causing
__debugInfo() to return Column/Constraint objects instead of arrays.
Changes:
- Replace __debugInfo() with getColumn() for column default value
- Simplify isPrimaryKey() to use getPrimaryKey() public API
Both getColumn() and getPrimaryKey() are stable public API methods
that return arrays for backwards compatibility.
Fixes mixerapi/mixerapi-dev#1591 parent 7df69cd commit a7c8e45
1 file changed
Lines changed: 7 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
38 | | - | |
| 37 | + | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
| 51 | + | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
| 57 | + | |
65 | 58 | | |
66 | 59 | | |
67 | 60 | | |
| |||
0 commit comments