Skip to content

Migrator::create() adds Fields from Join to Model table #1226

@PhilippGrashoff

Description

@PhilippGrashoff

Some Code from my application (Tour Model):

        $ttJoin = $this->leftJoin('tour_type', ['masterField' => 'tour_type_id']);

        $ttJoin->addField('activity_id', ['system' => true]);

When using Migrator::create() to create a table for this Model, the field activity_id is added.

I will provide a minimal test to reproduce.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions