| Methods |
protected
|
_addReference(array<mixed> $seed, string $link, array<string, mixed> $defaults = []): Reference
|
#
|
public
|
addReference(string $link, array<string, mixed> $defaults): Reference
Add generic relation. Provide your own call-back that will return the model.
Add generic relation. Provide your own call-back that will return the model.
|
#
|
public
|
hasOne(string $link, array<string, mixed> $defaults = []): HasOne|HasOneSql
Add hasOne reference.
|
#
|
public
|
hasMany(string $link, array<string, mixed> $defaults = []): HasMany
Add hasMany reference.
|
#
|
public
|
containsOne(string $link, array<string, mixed> $defaults = []): ContainsOne
Add containsOne reference.
Add containsOne reference.
|
#
|
public
|
containsMany(string $link, array<string, mixed> $defaults = []): ContainsMany
Add containsMany reference.
Add containsMany reference.
|
#
|
public
|
hasReference(string $link): bool
|
#
|
public
|
getReference(string $link): Reference
|
#
|
public
|
getReferences(): array<string, Reference>
|
#
|
public
|
ref(string $link, array<string, mixed> $defaults = []): Model
Traverse to related model.
Traverse to related model.
|
#
|
public
|
refModel(string $link, array<string, mixed> $defaults = []): Model
Return related model.
|
#
|
public
|
refLink(string $link, array<string, mixed> $defaults = []): Model
Returns model that can be used for generating sub-query actions.
Returns model that can be used for generating sub-query actions.
|
#
|