class Doctrine_Table_Repository implements Countable, IteratorAggregate (View source)

Doctrine_Repository each record is added into Doctrine_Repository at the same time they are created, loaded from the database or retrieved from the cache

Methods

__construct(Doctrine_Table $table)

constructor

boolean
add(Doctrine_Record $record)

add

get(integer $oid)

get

integer
count()

count Doctrine_Registry implements interface Countable

boolean
evict(integer $oid)

No description

integer
evictAll()

No description

getIterator()

getIterator

contains(integer $oid)

contains

void
loadAll()

loadAll

Details

__construct(Doctrine_Table $table)

constructor

Parameters

Doctrine_Table $table

Doctrine_Table getTable()

getTable

Return Value

Doctrine_Table

boolean add(Doctrine_Record $record)

add

Parameters

Doctrine_Record $record record to be added into registry

Return Value

boolean

get(integer $oid)

get

Parameters

integer $oid

Exceptions

Doctrine_Table_Repository_Exception

integer count()

count Doctrine_Registry implements interface Countable

Return Value

integer the number of records this registry has

boolean evict(integer $oid)

Parameters

integer $oid object identifier

Return Value

boolean whether ot not the operation was successful

integer evictAll()

Return Value

integer number of records evicted

ArrayIterator getIterator()

getIterator

Return Value

ArrayIterator

contains(integer $oid)

contains

Parameters

integer $oid object identifier

void loadAll()

loadAll

Return Value

void