Overview

Namespaces

  • Inlm
    • Mappers

Classes

  • CamelCaseMapper
  • DefaultMapper
  • DynamicMapper
  • UnderScoreMapper

Exceptions

  • DuplicateException
  • Exception
  • InvalidArgumentException
  • Overview
  • Namespace
  • Class

Class DynamicMapper

Inlm\Mappers\DynamicMapper implements LeanMapper\IMapper
Namespace: Inlm\Mappers
Located at DynamicMapper.php
Methods summary
public
# __construct( LeanMapper\IMapper $fallback = NULL )
public static
# setMapping( string|null $tableName, string|null $entityClass = NULL, string|null $repositoryClass = NULL, string|null $primaryKey = NULL )

Parameters

$tableName
name in database
$entityClass
$repositoryClass
$primaryKey

Returns

static
public
# getPrimaryKey( $table )

Inheritdoc

public
# getTable( $entityClass )

Inheritdoc

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

Inheritdoc

public
# getColumn( $entityClass, $field )

Inheritdoc

public
# getEntityField( $table, $column )

Inheritdoc

public
# getRelationshipTable( $sourceTable, $targetTable )

Inheritdoc

public
# getRelationshipColumn( $sourceTable, $targetTable )

Inheritdoc

public
# getTableByRepositoryClass( $repositoryClass )

Inheritdoc

public
# getImplicitFilters( $entityClass, LeanMapper\Caller $caller = null )
Properties summary
protected LeanMapper\IMapper $fallback
#
protected array $tableToEntity

[tableName => entityClass]

[tableName => entityClass]

#
protected array $tablePrimaryKey

[tableName => primaryKey]

[tableName => primaryKey]

#
protected array $entityToTable

[entityClass => tableName]

[entityClass => tableName]

#
protected array $repositoryToTable

[repositoryClass => tableName]

[repositoryClass => tableName]

#
inlm/mappers v1.0.0 API documentation API documentation generated by ApiGen