Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Baked fixture name length limited to 28 Characters #987

Open
toggenation opened this issue Apr 26, 2024 · 1 comment
Open

Baked fixture name length limited to 28 Characters #987

toggenation opened this issue Apr 26, 2024 · 1 comment

Comments

@toggenation
Copy link

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

@markstory markstory transferred this issue from cakephp/cakephp Apr 29, 2024
@markstory
Copy link
Member

Are you using postgres by any chance?

@markstory markstory added this to the 3.x (CakePHP 5) milestone Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants