Am refering to moneyphp/money library which I plan to use it in one of our projects for dealing with currencies. The Documentation is great except it does not touch how to persist in the database. It speaks about encoding money object to JSON but storing strings makes it difficult to make queries as simple as comparing the amount or currencies.
Going through issues, I have found few discussion about Doctrine and it is so specific to doctrine that I could not benefit anything.
Asking my question, in concise words: How do I store money object without loosing details? I'm interested in Postgresql but any relational database is OK.
Note: I have read many different way to persist monetary in database and they differ in how they do. Am interested in specific way that works with this specific library.