In my project to integrate Doctrine with CI (readme: WC, SVN) I found two disturbing things.
First is the fact that the Session class totally depends on the Active Record class being enabled and that the availability of the class is not even checked. I think that even if the next point isn’t fixed the availability of the AR should at least be checked and the dependency noted in the documentation and class file.
The second point is that the use of the database is hard coded into the class. And thus it’s not pluggable. It might be a nice idea to implement a modular data storage for the session class to make it less dependable on the CI AR. This would be particularly nice to get rid of the CI database layer at all to use only Doctrine.
What is your opinion about this?
