1: <?php
2:
3: namespace PHPixie\ORM\Maps\Map\Property;
4:
5: class Entity extends \PHPixie\ORM\Maps\Map\Property
6: {
7: public function property($entity, $propertyName)
8: {
9: $side = $this->get($entity->modelName(), $propertyName);
10: $relationship = $this->relationships->get($side->relationshipType());
11:
12: return $relationship->entityProperty($side, $entity);
13: }
14: }