PHP Interface Blast\Orm\Entity\DefinitionInterface

Inheritance: extends League\Event\EmitterAwareInterface, extends Blast\Orm\MapperAwareInterface, extends Blast\Orm\Relations\RelationsAwareInterface
Show file Open project: phpthinktank/blast-orm

Public Methods

Method Description
getEntity ( ) : ArrayObject | object
getEntityCollection ( ) : SplStack | object
getFields ( ) : Doctrine\DBAL\Schema\Column[]
getIndexes ( ) : Doctrine\DBAL\Schema\Index[]
getPrimaryKeyName ( ) : string Name of primary key
getTableName ( boolean $withPrefix = true ) : string Table name

Method Details

getEntity() public method

public getEntity ( ) : ArrayObject | object
return ArrayObject | object

getEntityCollection() public method

public getEntityCollection ( ) : SplStack | object
return SplStack | object

getFields() public method

public getFields ( ) : Doctrine\DBAL\Schema\Column[]
return Doctrine\DBAL\Schema\Column[]

getIndexes() public method

public getIndexes ( ) : Doctrine\DBAL\Schema\Index[]
return Doctrine\DBAL\Schema\Index[]

getPrimaryKeyName() public method

Name of primary key
public getPrimaryKeyName ( ) : string
return string

getTableName() public method

Table name
public getTableName ( boolean $withPrefix = true ) : string
$withPrefix boolean
return string