1: <?php
2:
3: namespace PHPixie\ORM\Wrappers\Type\Database;
4:
5: class Entity extends \PHPixie\ORM\Wrappers\Model\Entity
6: implements \PHPixie\ORM\Models\Type\Database\Entity
7: {
8: public function id()
9: {
10: return $this->entity->id();
11: }
12:
13: public function setId($id)
14: {
15: $this->entity->setId($id);
16: return $this;
17: }
18:
19: public function isDeleted()
20: {
21: return $this->entity->isDeleted();
22: }
23:
24: public function setIsDeleted($isDeleted)
25: {
26: $this->entity->setIsDeleted($isDeleted);
27: return $this;
28: }
29:
30: public function isNew()
31: {
32: return $this->entity->isNew();
33: }
34:
35: public function setIsNew($isNew)
36: {
37: $this->entity->setIsNew($isNew);
38: return $this;
39: }
40:
41: public function save()
42: {
43: $this->entity->save();
44: return $this;
45: }
46:
47: public function delete()
48: {
49: $this->entity->delete();
50: return $this;
51: }
52: }