Overview

Namespaces

  • LeanMapper
    • Exception
    • Reflection
    • Relationship

Classes

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

Class BelongsTo

Base class for belongs to relationships

Direct known subclasses

LeanMapper\Relationship\BelongsToMany, LeanMapper\Relationship\BelongsToOne
Abstract
Namespace: LeanMapper\Relationship
Author: Vojtěch Kohout
Located at Relationship/BelongsTo.php
Methods summary
public
# __construct( string|null $columnReferencingSourceTable, string|null $targetTable, string $strategy )

Parameters

$columnReferencingSourceTable
$targetTable
$strategy
public string|null
# getColumnReferencingSourceTable( )

Gets name of column referencing source table

Gets name of column referencing source table

Returns

string|null
public string|null
# getTargetTable( )

Gets name of target table

Gets name of target table

Returns

string|null
public string
# getStrategy( )

Gets strategy used to get referencing result

Gets strategy used to get referencing result

Returns

string
strategy
tharos/leanmapper v2.3.0 API documentation API documentation generated by ApiGen