Метод |
Описание |
|
__construct ( Mapper $mapper, $entityName, $foreignKey, $localKey, $identityValue ) |
Constructor function |
|
count ( ) : integer |
SPL Countable function
Called automatically when attribute is used in a 'count()' function call |
|
eagerLoadOnCollection ( $relationName, Collection $collection ) : Spot\Collection |
Map relation results to original collection of entities |
|
getIterator ( ) : Collection |
SPL IteratorAggregate function
Called automatically when attribute is used in a 'foreach' loop |
|
identityValuesFromCollection ( Collection $collection ) |
Set identity values from given collection |
|
offsetExists ( $key ) |
---------------------------------------------- |
|
offsetGet ( $key ) |
|
|
offsetSet ( $key, $value ) |
|
|
offsetUnset ( $key ) |
|
|
save ( Spot\EntityInterface $entity, string $relationName, array $options = [] ) : boolean |
Save related entities |
|