enum RelationKind: string

The relationship operators of DBML, whose values are the operators themselves.

Many-to-many has no operator here. DBML spells it <> and invents a junction table to draw it with, but a fixture has to put rows in that junction table, so it must be named. Writing the two halves separately says the same thing without hiding the table that carries the data.

Cases§

case OneToMany = '<'

The left side is the one, the right side is the many.

case ManyToOne = '>'

The left side is the many, the right side is the one.

case OneToOne = '-'

Methods§

public function childSide(): RelationSide
public function childIsCollection(): bool

Whether the child end holds a list of rows rather than a single row.

Returns

bool
Called from 1
Calls 1

Test cases 51§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 6
Other tests reaching this symbol 45

Relations§

Static calls 1
Method calls 5
Constant reads 3
Type declarations 3