Overview

Namespaces

  • LeanMapper
    • Exception
    • Reflection
    • Relationship

Classes

  • Entity
  • Repository
  • Result
  • Row
  • Overview
  • Namespace
  • Class

Class Row

Pointer to specific position inside LeanMapper\Result instance

Namespace: LeanMapper
Author: Vojtěch Kohout
Located at Row.php
Methods summary
public
# __construct( LeanMapper\Result $result, integer $id )

Parameters

$result
$id
public mixed
# __get( string $name )

Returns value of given field

Returns value of given field

Parameters

$name

Returns

mixed
public
# __set( string $name, mixed $value )

Sets value of given field

Sets value of given field

Parameters

$name
$value
public boolean
# isModified( )

Tells whether row is in modified state

Tells whether row is in modified state

Returns

boolean
public boolean
# isDetached( )

Tells whether row is in modified state

Tells whether row is in modified state

Returns

boolean
public
# detach( )

Marks row as detached (it means non-persisted)

Marks row as detached (it means non-persisted)

public
# markAsUpdated( )

Marks row as non-updated (isModified() returns false right after this method call)

Marks row as non-updated (isModified() returns false right after this method call)

public
# markAsCreated( integer $id, string $table, DibiConnection $connection )

Marks row as persisted

Marks row as persisted

Parameters

$id
$table
$connection
public array
# getModifiedData( )

Returns array of modified fields with new values

Returns array of modified fields with new values

Returns

array
public
# cleanReferencedRowsCache( string|null $table = null, string|null $column = null )

Clean in-memory cache of referenced rows

Clean in-memory cache of referenced rows

Parameters

$table
$column
public LeanMapper\Row
# referenced( string $table, Closure $filter = null, string|null $viaColumn = null )

Returns referenced LeanMapper\Row instance

Returns referenced LeanMapper\Row instance

Parameters

$table
$filter
$viaColumn

Returns

LeanMapper\Row
public LeanMapper\Row[]
# referencing( string $table, Closure $filter = null, string|null $viaColumn = null )

Returns array of LeanMapper\Row instances referencing current row

Returns array of LeanMapper\Row instances referencing current row

Parameters

$table
$filter
$viaColumn

Returns

LeanMapper\Row[]
tharos/leanmapper v1.3.0 API documentation API documentation generated by ApiGen