+ /**
+ * Find parent
+ * @param object $object
+ * @param string $refName
+ * @return object
+ */
+ function by($object, $refName) {
+ $row = $this->mapper->mapOf($object)->getObjects()->getRow($object);
+ $this->map->refOf($row, $refName, $objects);
+ return current($objects);
+ }
+
+ /**
+ * Find childs
+ * @param object $object
+ * @param string $refName
+ * @return array
+ */
+ function of($object, $refName) {
+ $row = $this->mapper->mapOf($object)->getObjects()->getRow($object);
+ $this->map->allOf($row, $refName, $objects);
+ return $objects;
+ }
+