Overview

Namespaces

  • LeanMapper
    • Bridges
      • Nette
        • DI
    • Exception
    • Reflection
    • Relationship

Classes

  • Caller
  • Connection
  • DataDifference
  • DefaultEntityFactory
  • DefaultMapper
  • Entity
  • EntityDataDecoder
  • Events
  • Filtering
  • FilteringResult
  • FilteringResultDecorator
  • Fluent
  • ImplicitFilters
  • Repository
  • Result
  • ResultProxy
  • Row

Interfaces

  • IEntityFactory
  • IMapper
  • Overview
  • Namespace
  • Class

Class Row

Pointer to specific position within Result instance

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

Parameters

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

Gets value of given column

Gets value of given column

Parameters

$name

Returns

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

Sets value of given column

Sets value of given column

Parameters

$name
$value
public boolean
# __isset( string $name )

Tells whether Row has given column and is not null

Tells whether Row has given column and is not null

Parameters

$name

Returns

boolean
public boolean
# hasColumn( string $name )

Tells whether Row has given column

Tells whether Row has given column

Parameters

$name

Returns

boolean
public
# __unset( string $name )

Unsets given column

Unsets given column

Parameters

$name
public
# setConnection( LeanMapper\Connection $connection )

Parameters

$connection
public boolean
# hasConnection( )

Returns

boolean
public
# setMapper( LeanMapper\IMapper $mapper )

Parameters

$mapper
public LeanMapper\IMapper|null
# getMapper( )

Returns

LeanMapper\IMapper|null
public array
# getData( )

Returns values of columns

Returns values of columns

Returns

array
public array
# getModifiedData( )

Returns values of columns that were modified

Returns values of columns that were modified

Returns

array
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 detached state

Tells whether Row is in detached state

Returns

boolean
public
# detach( )

Detaches Row (it means mark it as non-persisted)

Detaches Row (it means mark it as non-persisted)

public
# attach( integer $id, string $table )

Marks Row as attached

Marks Row as attached

Parameters

$id
$table
public
# markAsUpdated( )

Marks Row as non-modified (isModified returns false right after this method call)

Marks Row as non-modified (isModified returns false right after this method call)

public LeanMapper\Row|null
# referenced( string $table, string|null $viaColumn = null, LeanMapper\Filtering $filtering = null )

Gets referenced Row instance

Gets referenced Row instance

Parameters

$table
$viaColumn
$filtering

Returns

LeanMapper\Row|null
public LeanMapper\Row[]
# referencing( string $table, string|null $viaColumn = null, LeanMapper\Filtering $filtering = null, string|null $strategy = null )

Gets array of Row instances referencing current Row

Gets array of Row instances referencing current Row

Parameters

$table
$viaColumn
$filtering
$strategy

Returns

LeanMapper\Row[]
public
# setReferencedRow( LeanMapper\Row $row, string $viaColumn )

Parameters

$row
$viaColumn
public
# addToReferencing( array $values, string $table, string|null $viaColumn = null, LeanMapper\Filtering $filtering = null, string|null $strategy = null )

Adds new data entry to referencing Result

Adds new data entry to referencing Result

Parameters

$values
$table
$viaColumn
$filtering
$strategy
public
# removeFromReferencing( array $values, string $table, string|null $viaColumn = null, LeanMapper\Filtering $filtering = null, string|null $strategy = null )

Remove given data entry from referencing Result

Remove given data entry from referencing Result

Parameters

$values
$table
$viaColumn
$filtering
$strategy
public LeanMapper\DataDifference
# createReferencingDataDifference( string $table, string|null $viaColumn = null, LeanMapper\Filtering $filtering = null, string|null $strategy = null )

Parameters

$table
$viaColumn
$filtering
$strategy

Returns

LeanMapper\DataDifference
public
# cleanReferencedRowsCache( string|null $table = null, string|null $viaColumn = null )

Cleans in-memory cache with referenced rows

Cleans in-memory cache with referenced rows

Parameters

$table
$viaColumn
public
# cleanReferencingRowsCache( string|null $table = null, string|null $viaColumn = null )

Cleans in-memory cache with referencing rows

Cleans in-memory cache with referencing rows

Parameters

$table
$viaColumn
public
# cleanReferencingAddedAndRemovedMeta( string $table, string|null $viaColumn = null, LeanMapper\Filtering $filtering = null, string|null $strategy = null )

Parameters

$table
$viaColumn
$filtering
$strategy
public LeanMapper\ResultProxy
# getResultProxy( string $proxyClass = 'LeanMapper\ResultProxy' )

Parameters

$proxyClass

Returns

LeanMapper\ResultProxy
tharos/leanmapper v3.1.0 API documentation API documentation generated by ApiGen