Error when Baking a model

I´m, trying to move my “localhost” Websites from a remote Linux to my Mac.

Now, when I bake a model in a new table i get this error:

2026-03-28 08:15:40 error: [TypeError] Cake\Database\Schema\TableSchema::getConstraint(): Argument #1 ($name) must be of type string, int given,

What does it mean?

edit:

i have a field “creator” in my table. When adding a foreign key constraint in phpmyadmin I get the above mentioned error

What version are you using? Specifically Cake core?
This has been fixed in 5.3.0, so make sure you have the latest version running.

1 Like

Thank you for your help!