PHP Class Blast\Orm\Relations\HasMany

Inheritance: implements Blast\Orm\ConnectionAwareInterface, implements Blast\Orm\Entity\ProviderFactoryInterface, implements Blast\Orm\Relations\RelationInterface, use trait Blast\Orm\ConnectionAwareTrait, use trait Blast\Orm\Entity\EntityAwareTrait, use trait Blast\Orm\Entity\ProviderFactoryTrait, use trait RelationTrait
Mostrar archivo Open project: phpthinktank/blast-orm Class Usage Examples

Public Methods

Method Description
__construct ( $entity, $foreignEntity, null $foreignKey = null ) Local entity relates to many entries of foreign entity by foreign key
execute ( ) : ArrayObject
getForeignEntity ( ) : mixed
getForeignKey ( ) : null
getQuery ( ) : Query Get relation query

Method Details

__construct() public method

Local entity relates to many entries of foreign entity by foreign key
public __construct ( $entity, $foreignEntity, null $foreignKey = null )
$entity
$foreignEntity
$foreignKey null

execute() public method

public execute ( ) : ArrayObject
return ArrayObject

getForeignEntity() public method

public getForeignEntity ( ) : mixed
return mixed

getForeignKey() public method

public getForeignKey ( ) : null
return null

getQuery() public method

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