PHP Class Blast\Orm\AbstractRepository

Inheritance: implements Blast\Orm\MapperFactoryInterface, implements Blast\Orm\RepositoryInterface, use trait MapperFactoryTrait
Afficher le fichier Open project: phpthinktank/blast-orm

Méthodes publiques

Méthode Description
all ( ) : SplStack | array Get a collection of all entities
find ( mixed $primaryKey ) : ArrayObject | stdClass | object Find entity by primary key
getEntity ( ) : object Get entity for repository
save ( object | array $data ) : integer | boolean Save new or existing entity data

Method Details

all() public méthode

Get a collection of all entities
public all ( ) : SplStack | array
Résultat SplStack | array

find() public méthode

Find entity by primary key
public find ( mixed $primaryKey ) : ArrayObject | stdClass | object
$primaryKey mixed
Résultat ArrayObject | stdClass | object

getEntity() abstract public méthode

Get entity for repository
abstract public getEntity ( ) : object
Résultat object

save() public méthode

Save new or existing entity data
public save ( object | array $data ) : integer | boolean
$data object | array
Résultat integer | boolean