public function addManagedRelationshipReference($entityA, $entityB, $field, RelationshipMetadata $relationship)
{
$aoid = spl_object_hash($entityA);
$boid = spl_object_hash($entityB);
$this->managedRelationshipReferences[$aoid][$field][] = ['entity' => $aoid, 'target' => $boid, 'rel' => $relationship];
$this->addManaged($entityA);
$this->addManaged($entityB);
//print_r($this->managedRelationshipReferences);
}