Class Result
Set of related data, heart of Lean Mapper
- LeanMapper\Result implements Iterator
public static
|
#
createInstance( DibiRow|DibiRow[] $data, string $table,
Creates new common instance (it means persisted) |
public static
|
|
public static
|
|
public
|
|
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
mixed
|
|
public
|
#
setDataEntry( mixed $id, string $key, mixed $value )
Sets value of given column in row with given id |
public
boolean
|
|
public
|
|
public
|
|
public
|
|
public
array
|
|
public
array
|
|
public
|
|
public
boolean
|
|
public
boolean
|
|
public
|
#
markAsUpdated( integer $id )
Marks requested row as non-modified (isModified returns false right after this method call) |
public
|
|
public
|
|
public
|
#
getReferencedRow( integer $id, string $table, string|null $viaColumn = null,
Creates new Row instance pointing to requested row in referenced Result |
public
|
#
getReferencingRows( integer $id, string $table, string|null $viaColumn = null,
Creates new array of Row instances pointing to requested row in referencing Result |
public
|
#
setReferencedResult(
|
public
|
#
setReferencingResult(
|
public
|
#
addToReferencing( array $values, string $table, string|null $viaColumn = null,
Adds new data entry to referencing Result |
public
|
#
removeFromReferencing( array $values, string $table, string|null $viaColumn = null,
Remove given data entry from referencing Result |
public
|
#
createReferencingDataDifference( string $table, string|null $viaColumn = null,
|
public
|
#
cleanReferencedResultsCache( string|null $table = null, string|null $viaColumn = null )
Cleans in-memory cache with referenced results |
public
|
#
cleanReferencingResultsCache( string|null $table = null, string|null $viaColumn = null )
Cleans in-memory cache with referencing results |
public
|
#
cleanReferencingAddedAndRemovedMeta( string $table, string|null $viaColumn = null,
|
public
|
|
public
array
|
|
public
|
|
public
mixed
|
|
public
|
|
public
integer
|
|
public
boolean
|
|
public
|
string |
STRATEGY_IN
|
#
'in'
|
string |
STRATEGY_UNION
|
#
'union'
|
integer |
DETACHED_ROW_ID
|
#
-1
|
string |
KEY_PRELOADED
|
#
'preloaded'
|
string |
KEY_FORCED
|
#
'forced'
|
integer |
ERROR_MISSING_COLUMN
|
#
1
|
protected
|
$mapper
|