Created failing test which does not save relations using safePersist
Implemented saving of relations using safePersist
Used class property instead of local variable
Refactored processing of safePersist to work also with not autogenerated identifiers
Merge pull request #83 from stekycz/bugfix/safe-persist-relations

Implemented saving of relations using safePersist