Ubiquity 2.5.2
php rapid development framework
|
Ubiquity\orm\repositories$Repository This class is part of Ubiquity. More...
Public Member Functions | |
__construct (string $model) | |
Public Member Functions inherited from AbstractRepository | |
all (string $condition='', $included=false, array $parameters=[], bool $useCache=false) | |
Load all instances. | |
orderBy (string $field, string $order='ASC', string $condition='', $included=false, array $parameters=[], bool $useCache=false) | |
Load all instances with order. | |
byId ($keyValues, $included=true, bool $useCache=false) | |
Load one instance by id. | |
one (string $condition='', $included=true, array $parameters=[], bool $useCache=false) | |
Load one instance. | |
insert (object $instance, bool $insertMany=false) | |
Insert a new instance $instance into the database. | |
update (object $instance, bool $insertMany=false) | |
Update an instance $instance in the database. | |
save (object $instance, bool $insertMany=false) | |
Save (insert or update) an instance $instance in the database. | |
remove (object $instance) | |
Remove an instance $instance from the database. | |
count (string $condition='',?array $parameters=null) | |
Returns the number of instances. | |
Protected Member Functions | |
getModel () | |
Protected Attributes | |
string | $model |
Ubiquity\orm\repositories$Repository This class is part of Ubiquity.
Definition at line 13 of file Repository.php.
__construct | ( | string | $model | ) |
Definition at line 16 of file Repository.php.
|
protected |
Reimplemented from AbstractRepository.
Definition at line 20 of file Repository.php.
|
protected |
Definition at line 14 of file Repository.php.