PHP Class Blast\Orm\Relations\BelongsTo

Inheritance: implements Blast\Orm\ConnectionAwareInterface, implements Blast\Orm\Relations\RelationInterface, implements Blast\Orm\Entity\ProviderFactoryInterface, use trait Blast\Orm\ConnectionAwareTrait, use trait Blast\Orm\Entity\EntityAwareTrait, use trait Blast\Orm\Entity\ProviderFactoryTrait, use trait RelationTrait
Exibir arquivo Open project: phpthinktank/blast-orm

Public Methods

Method Description
__construct ( $entity, $foreignEntity, null $localKey = null ) Local entity belongs to foreign entity by local key
execute ( ) : array | ArrayObject | object | boolean
getForeignEntity ( ) : mixed
getLocalKey ( ) : null
getQuery ( ) : Query Get relation query

Method Details

__construct() public method

Local entity belongs to foreign entity by local key
public __construct ( $entity, $foreignEntity, null $localKey = null )
$entity
$foreignEntity
$localKey null

execute() public method

public execute ( ) : array | ArrayObject | object | boolean
return array | ArrayObject | object | boolean

getForeignEntity() public method

public getForeignEntity ( ) : mixed
return mixed

getLocalKey() public method

public getLocalKey ( ) : null
return null

getQuery() public method

Get relation query
public getQuery ( ) : Query
return Blast\Orm\Query