Overview

Namespaces

  • LeanMapper
    • Exception
    • Reflection
    • Relationship

Classes

  • BelongsTo
  • BelongsToMany
  • BelongsToOne
  • HasMany
  • HasOne
  • Overview
  • Namespace
  • Class

Class HasMany

Has many relationship

Namespace: LeanMapper\Relationship
Author: Vojtěch Kohout
Located at Relationship/HasMany.php
Methods summary
public
# __construct( string $columnReferencingSourceTable, string $relationshipTable, string $columnReferencingTargetTable, string $targetTable, string $strategy )

Parameters

$columnReferencingSourceTable
$relationshipTable
$columnReferencingTargetTable
$targetTable
$strategy
public string
# getColumnReferencingSourceTable( )

Returns name of column referencing source table

Returns name of column referencing source table

Returns

string
public string
# getRelationshipTable( )

Returns name of relationship table

Returns name of relationship table

Returns

string
public string
# getColumnReferencingTargetTable( )

Returns name of column referencing target table

Returns name of column referencing target table

Returns

string
public string
# getTargetTable( )

Returns name of target table

Returns name of target table

Returns

string
public string
# getStrategy( )

Returns strategy used to get referencing result

Returns strategy used to get referencing result

Returns

string
strategy
tharos/leanmapper v1.4.0 API documentation API documentation generated by ApiGen