protected function getRelKey(EntityManager $em, $from, $to, $id, $property, RelationshipType $type) { $rel = new Relationship($property, $type); return $em->getKeyScheme()->getRelationshipKey($rel, $from, $to, $id); }