bake
bake copied to clipboard
Baked fixture name length limited to 28 Characters
Description
When baking a fixture with a custom name when the name parameter exceeds 28 characters it throws an exception.
It should be using the --table
parameter for the table name but after you exceed 28 characters it looks to be using the name param instead of --table
bin/cake bake fixture --conditions "purchase_order_response_id IN (2325, 2323)" -r -n 10000 --table purchase_order_response_lines AldiPurchaseOrderResponseLines
throws [Cake\Database\Exception\DatabaseException] Cannot describe aldi_purchase_order_response_lines. It has 0 columns.
# this works
bin/cake bake fixture --conditions "purchase_order_response_id IN (2325, 2323)" -r -n 10000 --table purchase_order_response_lines CustomNameIsLimitedToThisLen
CakePHP Version
5.0.7
PHP Version
8.1.28