Skip to content

Extension FK COLUMN NAME cause error in case of column name without underscore #29

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

Closed
1 task done
SOHELAHMED7 opened this issue Aug 23, 2024 · 0 comments · Fixed by #47
Closed
1 task done

Extension FK COLUMN NAME cause error in case of column name without underscore #29

SOHELAHMED7 opened this issue Aug 23, 2024 · 0 comments · Fixed by #47
Assignees
Labels
bug Something isn't working

Comments

@SOHELAHMED7
Copy link
Member

SOHELAHMED7 commented Aug 23, 2024

        user3:
          allOf:
            - $ref: '#/components/schemas/User'
            - x-fk-column-name: user3

Error:

image

user3 relation:

    public function getUser3()
    {
        return $this->hasOne(\app\models\User::class, ['id' => 'user3']);
    }

Note: Above error is not occurring for column name containing underscore. Example:

        redelivery_of:
          allOf:
            - $ref: '#/components/schemas/Delivery'
            - x-fk-column-name: redelivery_of 

column name is redelivery_of and relation is redeliveryOf/getRedeliveryOf()


@SOHELAHMED7 SOHELAHMED7 added the bug Something isn't working label Aug 23, 2024
@SOHELAHMED7 SOHELAHMED7 self-assigned this Aug 23, 2024
cebe pushed a commit that referenced this issue Nov 14, 2024
…-table-if-a-entire-schema-is-deleted-from-open-api-spec

Resolve - Create migration for drop table if a entire schema is deleted from OpenAPI spec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant