Method |
Description |
|
__sleep ( ) : array |
|
|
__wakeup ( ) |
|
|
addDataEntry ( array $values ) |
Adds new data entry |
|
addToReferencing ( array $values, string $table, string | null $viaColumn = null, Filtering $filtering = null, string | null $strategy = self::STRATEGY_IN ) |
Adds new data entry to referencing Result |
|
attach ( mixed $id, string $table ) |
|
|
cleanAddedAndRemovedMeta ( ) |
|
|
cleanReferencedResultsCache ( string | null $table = null, string | null $viaColumn = null ) |
Cleans in-memory cache with referenced results |
|
cleanReferencingAddedAndRemovedMeta ( string $table, string | null $viaColumn = null, Filtering $filtering = null, string | null $strategy = self::STRATEGY_IN ) |
|
|
cleanReferencingResultsCache ( string | null $table = null, string | null $viaColumn = null ) |
Cleans in-memory cache with referencing results |
|
createDataDifference ( ) : DataDifference |
Creates new DataDifference instance relevant to current Result state |
|
createDetachedInstance ( ) : self |
Creates new detached instance (it means non-persisted) |
|
createInstance ( Row | Row[] $data, string $table, Connection $connection, leanmapper\IMapper $mapper ) : self |
Creates new common instance (it means persisted) |
|
createReferencingDataDifference ( string $table, string | null $viaColumn = null, Filtering $filtering = null, string | null $strategy = self::STRATEGY_IN ) : DataDifference |
|
|
current ( ) : mixed |
|
|
enableSerialization ( Connection $connection ) |
|
|
getData ( integer $id ) : array |
Returns values of columns of requested row |
|
getDataEntry ( mixed $id, string $key ) : mixed |
Gets value of given column from row with given id |
|
getMapper ( ) : leanmapper\IMapper | null |
|
|
getModifiedData ( integer $id ) : array |
Returns values of columns of requested row that were modified |
|
getProxy ( string $proxyClass ) : ResultProxy |
|
|
getReferencedRow ( integer $id, string $table, string | null $viaColumn = null, Filtering $filtering = null ) : Row | null |
Creates new Row instance pointing to requested row in referenced Result |
|
getReferencingRows ( integer $id, string $table, string | null $viaColumn = null, Filtering $filtering = null, string $strategy = null ) : Row[] |
Creates new array of Row instances pointing to requested row in referencing Result |
|
getRow ( integer $id = null ) : Row | null |
Creates new Row instance pointing to specific row within Result |
|
hasConnection ( ) : boolean |
|
|
hasDataEntry ( mixed $id, string $column ) : boolean |
Tells whether row with given id has given column |
|
isDetached ( ) : boolean |
Tells whether Result is in detached state (in means non-persisted) |
|
isModified ( integer $id ) : boolean |
Tells whether requested row is in modified state |
|
key ( ) : integer |
|
|
markAsUpdated ( integer $id ) |
Marks requested row as non-modified (isModified returns false right after this method call) |
|
next ( ) |
|
|
removeDataEntry ( array $values ) |
Removes given data entry |
|
removeFromReferencing ( array $values, string $table, string | null $viaColumn = null, Filtering $filtering = null, string | null $strategy = self::STRATEGY_IN ) |
Remove given data entry from referencing Result |
|
rewind ( ) |
|
|
setConnection ( Connection $connection ) |
|
|
setDataEntry ( mixed $id, string $key, mixed $value ) |
Sets value of given column in row with given id |
|
setMapper ( leanmapper\IMapper $mapper ) |
|
|
setReferencedResult ( self $referencedResult, string $table, string $viaColumn = null ) |
|
|
setReferencingResult ( self $referencingResult, string $table, string $viaColumn = null, string $strategy = self::STRATEGY_IN ) |
|
|
unsetDataEntry ( mixed $id, string $column ) |
Unsets given column in row with given id |
|
valid ( ) : boolean |
|
|