Skip to content

feat: expose customerId on OrderCustomer#59

Merged
Chuc Le (untilu29) merged 1 commit into
mainfrom
feat/order-customer-get-customer-id
Jun 2, 2026
Merged

feat: expose customerId on OrderCustomer#59
Chuc Le (untilu29) merged 1 commit into
mainfrom
feat/order-customer-get-customer-id

Conversation

@untilu29
Copy link
Copy Markdown
Contributor

OrderCustomer carries the customer_id foreign key directly on the struct, but the only accessor for the customer relation (getCustomer()) requires the nested Customer entity which is only populated on newer Shopware versions. Add getCustomerId() so apps can read the foreign key without depending on the nested entity.

Returns nullable string — Shopware allows the FK to be null for guest orders.

OrderCustomer carries the customer_id foreign key directly on the
struct, but the only accessor for the customer relation
(getCustomer()) requires the nested Customer entity which is only
populated on newer Shopware versions. Add getCustomerId() so apps
can read the foreign key without depending on the nested entity.

Returns nullable string — Shopware allows the FK to be null for
guest orders.
@untilu29 Chuc Le (untilu29) requested a review from a team June 2, 2026 07:59
@untilu29 Chuc Le (untilu29) self-assigned this Jun 2, 2026
@untilu29 Chuc Le (untilu29) merged commit 09ea6c1 into main Jun 2, 2026
12 checks passed
@untilu29 Chuc Le (untilu29) deleted the feat/order-customer-get-customer-id branch June 2, 2026 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants