Class Result
Set of related data
- LeanMapper\Result implements Iterator
public static
|
#
getInstance( DibiRow|DibiRow[] $data, string $table, DibiConnection $connection )
Creates new common instance (it means persisted) |
public static
|
|
public
|
|
public
mixed
|
|
public
|
#
setDataEntry( integer $id, string $key, mixed $value )
Sets data of given field in row with given id |
public
boolean
|
|
public
boolean
|
#
isDetached( integer $id )
Tells whether requested row is in detached state (like newly created row) |
public
|
|
public
|
#
markAsUpdated( integer $id )
Marks requested row as non-updated (isModified($id) returns false right after this method call) |
public
|
#
markAsCreated( integer $id, string $table, DibiConnection $connection )
Marks requested row as persisted |
public
array
|
|
public
|
#
getReferencedRow( integer $id, string $table, Closure $filter = null, string|null $viaColumn = null )
Creates new LeanMapper\Row instance pointing to requested row in referenced result |
public
|
#
getReferencingRows( integer $id, string $table, Closure $filter = null, string|null $viaColumn = null )
Creates new array of LeanMapper\Row instances pointing to requested row in referencing result |
public
|
#
cleanReferencedResultsCache( string|null $table = null, string|null $column = null )
Clean in-memory cache of referenced results |
public
mixed
|
|
public
|
|
public
integer
|
|
public
boolean
|
|
public
|