Method |
Description |
|
__construct ( Result $result, integer $id ) |
|
|
__get ( string $name ) : mixed |
Gets value of given column |
|
__isset ( string $name ) : boolean |
Tells whether Row has given column and is not null |
|
__set ( string $name, mixed $value ) |
Sets value of given column |
|
__unset ( string $name ) |
Unsets given column |
|
addToReferencing ( array $values, string $table, string | null $viaColumn = null, Filtering $filtering = null, string | null $strategy = null ) |
Adds new data entry to referencing Result |
|
attach ( integer $id, string $table ) |
Marks Row as attached |
|
cleanReferencedRowsCache ( string | null $table = null, string | null $viaColumn = null ) |
Cleans in-memory cache with referenced rows |
|
cleanReferencingAddedAndRemovedMeta ( string $table, string | null $viaColumn = null, Filtering $filtering = null, string | null $strategy = null ) |
|
|
cleanReferencingRowsCache ( string | null $table = null, string | null $viaColumn = null ) |
Cleans in-memory cache with referencing rows |
|
createReferencingDataDifference ( string $table, string | null $viaColumn = null, Filtering $filtering = null, string | null $strategy = null ) : DataDifference |
|
|
detach ( ) |
Detaches Row (it means mark it as non-persisted) |
|
getData ( ) : array |
Returns values of columns |
|
getMapper ( ) : leanmapper\IMapper | null |
|
|
getModifiedData ( ) : array |
Returns values of columns that were modified |
|
getResultProxy ( string $proxyClass = 'LeanMapper\ResultProxy' ) : ResultProxy |
|
|
hasColumn ( string $name ) : boolean |
Tells whether Row has given column |
|
hasConnection ( ) : boolean |
|
|
isDetached ( ) : boolean |
Tells whether Row is in detached state |
|
isModified ( ) : boolean |
Tells whether Row is in modified state |
|
markAsUpdated ( ) |
Marks Row as non-modified (isModified returns false right after this method call) |
|
referenced ( string $table, string | null $viaColumn = null, Filtering $filtering = null ) : Row | null |
Gets referenced Row instance |
|
referencing ( string $table, string | null $viaColumn = null, Filtering $filtering = null, string | null $strategy = null ) : Row[] |
Gets array of Row instances referencing current Row |
|
removeFromReferencing ( array $values, string $table, string | null $viaColumn = null, Filtering $filtering = null, string | null $strategy = null ) |
Remove given data entry from referencing Result |
|
setConnection ( Connection $connection ) |
|
|
setMapper ( leanmapper\IMapper $mapper ) |
|
|
setReferencedRow ( self $row = null, string $viaColumn ) |
|
|