| Methods |
private
|
getModelTableString(Model $model): string
|
#
|
public
|
getTheirFieldName(Model $theirModel = null): string
|
#
|
protected
|
getOurFieldValueForRefCondition(Model $ourModel): mixed
Returns our field value or id.
Returns our field value or id.
|
#
|
protected
|
referenceOurValue(): Field
Returns our field or id field.
Returns our field or id field.
|
#
|
public
|
ref(Model $ourModel, array $defaults = []): Model
Returns referenced model with condition set.
Returns referenced model with condition set.
Overrides
|
#
|
public
|
refLink(?Model $ourModel, array<string, mixed> $defaults = []): Model
Creates model that can be used for generating sub-query actions.
Creates model that can be used for generating sub-query actions.
|
#
|
public
|
addField(string $fieldName, array<string, mixed> $defaults = []): Field
Adds field as expression to our model. Used in aggregate strategy.
Adds field as expression to our model. Used in aggregate strategy.
|
#
|
public
|
addFields(array<string, array<mixed>>|array<int, string> $fields = [], array<mixed> $defaults = []): $this
Adds multiple fields.
|
#
|