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

Add more info about nullable option in relations #159

Open
roxblnfk opened this issue Oct 2, 2023 · 0 comments
Open

Add more info about nullable option in relations #159

roxblnfk opened this issue Oct 2, 2023 · 0 comments

Comments

@roxblnfk
Copy link
Member

roxblnfk commented Oct 2, 2023

When working with ORM, users often encounter the error

Cycle\ORM\Exception\TransactionException: Transaction can't be finished. Some relations can't be resolved:
Create new `asset`
- asset.services:asset (Cycle\ORM\Relation\ShadowBelongsTo)

This is related to the fact that the nullable: true option is not set in HasMany, HasOne, and other relations.

This needs to be better highlighted in the documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant