Overview

Namespaces

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

Classes

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

Interfaces

  • IEntityFactory
  • IEntityReflectionProvider
  • IMapper
  • Overview
  • Namespace
  • Class

Interface IMapper

Mapper interface

Direct known implementers

LeanMapper\DefaultMapper
Namespace: LeanMapper
Author: Vojtěch Kohout
Located at LeanMapper/IMapper.php
Methods summary
public string
# getPrimaryKey( string $table )

Gets primary key name from given table name

Gets primary key name from given table name

Parameters

$table

Returns

string
public string
# getTable( string $entityClass )

Gets table name from given fully qualified entity class name

Gets table name from given fully qualified entity class name

Parameters

$entityClass

Returns

string
public string
# getEntityClass( string $table, LeanMapper\Row $row = null )

Gets fully qualified entity class name from given table name

Gets fully qualified entity class name from given table name

Parameters

$table
$row

Returns

string
public string
# getColumn( string $entityClass, string $field )

Gets table column name from given fully qualified entity class name and entity field name

Gets table column name from given fully qualified entity class name and entity field name

Parameters

$entityClass
$field

Returns

string
public string
# getEntityField( string $table, string $column )

Gets entity field (property) name from given table name and table column

Gets entity field (property) name from given table name and table column

Parameters

$table
$column

Returns

string
public string
# getRelationshipTable( string $sourceTable, string $targetTable )

Gets relationship table name from given source table name and target table name

Gets relationship table name from given source table name and target table name

Parameters

$sourceTable
$targetTable

Returns

string
public string
# getRelationshipColumn( string $sourceTable, string $targetTable, string|null $relationshipName,… )

Gets name of column that contains foreign key from given source table name and target table name

Gets name of column that contains foreign key from given source table name and target table name

Parameters

$sourceTable
$targetTable
$relationshipName,…

Returns

string
public string
# getTableByRepositoryClass( string $repositoryClass )

Gets table name from repository class name

Gets table name from repository class name

Parameters

$repositoryClass

Returns

string
public array|LeanMapper\ImplicitFilters
# getImplicitFilters( string $entityClass, LeanMapper\Caller $caller = null )

Gets filters that should be used used every time when given entity is loaded from database

Gets filters that should be used used every time when given entity is loaded from database

Parameters

$entityClass
$caller

Returns

array|LeanMapper\ImplicitFilters
tharos/leanmapper v3.4.1 API documentation API documentation generated by ApiGen