protected function addRelation(Object $object, RelationDefinitionInterface $relation, &$xmlTable)
{
$possibleRelations = [AbstractStorage::MANY_TO_ONE, AbstractStorage::ONE_TO_ONE];
if (in_array($relation->getType(), $possibleRelations)) {
$this->addForeignKey($object, $relation, $xmlTable);
}
}