Addes console commands orm:convert-mapping and orm:generate-entities
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
Merge pull request #82 from foxycode/master

Adds console commands orm:convert-mapping and orm:generate-entities
Fixed count of result set to be different from totalCount