Skip to content

Error bake while code generation #1012

@luizcmarin

Description

@luizcmarin

Description

I am installing the "Authentication" plugin using the command "bin/cake bake model Users" (https://book.cakephp.org/authentication/3/en/index.html#building-a-login-action)

It returns the error "error: [Cake\Core\Exception\CakeException] Association alias Countries is already set. in...."

It turns out that I need these relationships.

This is a zero-scale application with only one table created so far, "tests". So I imported all the other tables. I installed the plugin and then ran the command mentioned. There is no call anywhere for the 'Users' table.

Suppot say: "i thought you get that error after you baked the code. but it happens while code generation."

Could you please check?

kancats.txt
TestesTable.txt
Testis.txt
composer.txt
Image
Image
Image

Bake Version

actual (see composer.txt)

PHP Version

833

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions