Tharos / LeanMapper

Lean Mapper is a tiny ORM based on powerful Dibi database abstraction library for PHP.
MIT License
87 stars 35 forks source link

new serialization doesn't support multiple connections #79

Closed iinfo-dev-mk closed 8 years ago

iinfo-dev-mk commented 10 years ago

Entities serialization is supported by Result::enableSerialization() (mentioned here). I don't think it's work for application with multiple repositories from different databases with different server connections. Because only one connection in one static property is presented for whole application. But maybe I missed something.

castamir commented 8 years ago

Well, it is not. And I am not sure if it should be resolved on LM side or your. You can use e.g. postgre or sql server type of databases with schemas (multiple databases in a single one). Anyway, hidden connection property is hell in many ways, not just serialization. I am pretty aware of that.

For now, I'm not going to implement this. Feel free to try it by yourself if you want and then send a PR.