1: <?php
2:
3: namespace PHPixie\ORM\Wrappers\Type\Database;
4:
5: class Repository implements \PHPixie\ORM\Models\Type\Database\Repository
6: {
7: 8: 9:
10: protected $repository;
11:
12: public function __construct($repository)
13: {
14: $this->repository = $repository;
15: }
16:
17: public function config()
18: {
19: return $this->repository->config();
20: }
21:
22: public function modelName()
23: {
24: return $this->repository->modelName();
25: }
26:
27: public function save($entity)
28: {
29: $this->repository->save($entity);
30: }
31:
32: public function delete($entity)
33: {
34: $this->repository->delete($entity);
35: }
36:
37: public function load($data)
38: {
39: return $this->repository->load($data);
40: }
41:
42: public function create()
43: {
44: return $this->repository->create();
45: }
46:
47: public function query()
48: {
49: return $this->repository->query();
50: }
51:
52: public function connection()
53: {
54: return $this->repository->connection();
55: }
56:
57: public function databaseSelectQuery()
58: {
59: return $this->repository->databaseSelectQuery();
60: }
61:
62: public function databaseUpdateQuery()
63: {
64: return $this->repository->databaseUpdateQuery();
65: }
66:
67: public function databaseDeleteQuery()
68: {
69: return $this->repository->databaseDeleteQuery();
70: }
71:
72: public function databaseInsertQuery()
73: {
74: return $this->repository->databaseInsertQuery();
75: }
76:
77: public function databaseCountQuery()
78: {
79: return $this->repository->databaseCountQuery();
80: }
81:
82:
83: }