Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
Repository Class Reference

Ubiquity\orm\repositories$Repository This class is part of Ubiquity. More...

+ Inheritance diagram for Repository:

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
 

Detailed Description

Ubiquity\orm\repositories$Repository This class is part of Ubiquity.

Author
jc
Version
1.0.1

Definition at line 13 of file Repository.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( string  $model)

Definition at line 16 of file Repository.php.

Member Function Documentation

◆ getModel()

getModel ( )
protected

Reimplemented from AbstractRepository.

Definition at line 20 of file Repository.php.

Field Documentation

◆ $model

string $model
protected

Definition at line 14 of file Repository.php.


The documentation for this class was generated from the following file: