Skip to content

Add more info about nullable option in relations #159

@roxblnfk

Description

@roxblnfk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions