1: <?php
2:
3: namespace PHPixie\ORM\Relationships\Type\OneTo\Type\Many\Property\Entity;
4:
5: class Owner extends \PHPixie\ORM\Relationships\Type\OneTo\Property\Entity\Single
6: {
7: protected function load()
8: {
9: $this->handler->loadOwnerProperty($this->side, $this->entity);
10: }
11:
12: protected function linkPlan($owner)
13: {
14: return $this->handler->linkPlan($this->side->config(), $owner, $this->entity);
15: }
16:
17: protected function setProperties($owner)
18: {
19: $this->handler->addOwnerItems($this->side->config(), $owner, $this->entity);
20: }
21:
22: protected function unlinkPlan()
23: {
24: return $this->handler->unlinkItemsPlan($this->side->config(), $this->entity);
25: }
26:
27: protected function unsetProperties()
28: {
29: $this->handler->removeItemOwner($this->side->config(), $this->entity);
30: }
31: }
32: