Метод |
Описание |
|
__construct ( Mapper $mapper, $entityName, $foreignKey, $localKey, $identityValue ) |
Constructor function |
|
__get ( $key ) |
---------------------------------------------- |
|
__set ( $key, $val ) |
|
|
entity ( ) |
Helper function to return the entity |
|
entityKey ( ) : string |
Get entity key field - for BelongsTo, this will be the local key instead
of the primary key. |
|
execute ( ) : Entity |
Find first entity in the set |
|
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 |
|