Skip to content

declare relationship by getting primary key field automatically #193

@c9s

Description

@c9s
$this->hasMany('items', OrderItemSchema::class, 'order_id', 'id')

where id could be $this->getKeyField() or get the primary key internally.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions