GatheringTypeGatheringActivitiesTable
extends Table
in package
GatheringTypeGatheringActivities Model
Join table for many-to-many relationship between GatheringTypes and GatheringActivities. This defines template activities that will be automatically added to gatherings of a specific type.
Table of Contents
Properties
- $GatheringActivities : GatheringActivitiesTable|BelongsTo
- $GatheringTypes : GatheringTypesTable|BelongsTo
Methods
- buildRules() : RulesChecker
- Returns a rules checker object that will be used for validating application integrity.
- findOrCreate() : GatheringTypeGatheringActivity
- get() : GatheringTypeGatheringActivity
- initialize() : void
- Initialize method
- newEmptyEntity() : GatheringTypeGatheringActivity
- newEntities() : array<string|int, GatheringTypeGatheringActivity>
- newEntity() : GatheringTypeGatheringActivity
- patchEntities() : array<string|int, GatheringTypeGatheringActivity>
- patchEntity() : GatheringTypeGatheringActivity
- save() : GatheringTypeGatheringActivity|false
- saveOrFail() : GatheringTypeGatheringActivity
- validationDefault() : Validator
- Default validation rules.
Properties
$GatheringActivities
public
GatheringActivitiesTable|BelongsTo
$GatheringActivities
$GatheringTypes
public
GatheringTypesTable|BelongsTo
$GatheringTypes
Methods
buildRules()
Returns a rules checker object that will be used for validating application integrity.
public
buildRules(RulesChecker $rules) : RulesChecker
Parameters
- $rules : RulesChecker
-
The rules object to be modified.
Return values
RulesCheckerfindOrCreate()
public
findOrCreate(mixed $search[, callable|null $callback = = 'null' ][, array<string|int, mixed> $options = = '[]' ]) : GatheringTypeGatheringActivity
Parameters
- $search : mixed
- $callback : callable|null = = 'null'
- $options : array<string|int, mixed> = = '[]'
Return values
GatheringTypeGatheringActivityget()
public
get(mixed $primaryKey[, array<string|int, mixed>|string $finder = = '\'all\'' ][, CacheInterface|string|null $cache = = 'null' ][, Closure|string|null $cacheKey = = 'null' ], mixed ...$args) : GatheringTypeGatheringActivity
Parameters
- $primaryKey : mixed
- $finder : array<string|int, mixed>|string = = '\'all\''
- $cache : CacheInterface|string|null = = 'null'
- $cacheKey : Closure|string|null = = 'null'
- $args : mixed
Return values
GatheringTypeGatheringActivityinitialize()
Initialize method
public
initialize(array<string, mixed> $config) : void
Parameters
- $config : array<string, mixed>
-
The configuration for the Table.
newEmptyEntity()
public
newEmptyEntity() : GatheringTypeGatheringActivity
Return values
GatheringTypeGatheringActivitynewEntities()
public
newEntities(array<string|int, mixed> $data[, array<string|int, mixed> $options = = '[]' ]) : array<string|int, GatheringTypeGatheringActivity>
Parameters
- $data : array<string|int, mixed>
- $options : array<string|int, mixed> = = '[]'
Return values
array<string|int, GatheringTypeGatheringActivity>newEntity()
public
newEntity(array<string|int, mixed> $data[, array<string|int, mixed> $options = = '[]' ]) : GatheringTypeGatheringActivity
Parameters
- $data : array<string|int, mixed>
- $options : array<string|int, mixed> = = '[]'
Return values
GatheringTypeGatheringActivitypatchEntities()
public
patchEntities(iterable<string|int, mixed> $entities, array<string|int, mixed> $data[, array<string|int, mixed> $options = = '[]' ]) : array<string|int, GatheringTypeGatheringActivity>
Parameters
- $entities : iterable<string|int, mixed>
- $data : array<string|int, mixed>
- $options : array<string|int, mixed> = = '[]'
Return values
array<string|int, GatheringTypeGatheringActivity>patchEntity()
public
patchEntity(EntityInterface $entity, array<string|int, mixed> $data[, array<string|int, mixed> $options = = '[]' ]) : GatheringTypeGatheringActivity
Parameters
- $entity : EntityInterface
- $data : array<string|int, mixed>
- $options : array<string|int, mixed> = = '[]'
Return values
GatheringTypeGatheringActivitysave()
public
save(EntityInterface $entity[, array<string|int, mixed> $options = = '[]' ]) : GatheringTypeGatheringActivity|false
Parameters
- $entity : EntityInterface
- $options : array<string|int, mixed> = = '[]'
Return values
GatheringTypeGatheringActivity|falsesaveOrFail()
public
saveOrFail(EntityInterface $entity[, array<string|int, mixed> $options = = '[]' ]) : GatheringTypeGatheringActivity
Parameters
- $entity : EntityInterface
- $options : array<string|int, mixed> = = '[]'
Return values
GatheringTypeGatheringActivityvalidationDefault()
Default validation rules.
public
validationDefault(Validator $validator) : Validator
Parameters
- $validator : Validator
-
Validator instance.