On Thu, 23 Sep 2010, Mercedes Sualog III wrote:
> Actually I don't still have the idea on how to do it..I am thinking since
> Symfony supports ORM ideally this should support any database but I am not
> sure with Cassandra since this a NoSQL and new one.
Yeah, you would need to write an ORM->NoSQL mapping layer...
> When you say "roll your own library" does this mean I have to create on my
> own and library was not yet available?(Sorry I am not yet so much familiar
> with the libraries available.)
ORM is an abstraction on top of SQL. Doctrine has a similar abstraction
(ODM) so you can use Mongo as your backend database. I dont know if its
designed to work with any other NoSQL database so you would have to write
something similar (if you want a higher level interface) or adapt some
existing abstraction code. Of course, your queries might be very simple in
which you can just use straight PHP and whatever API is provided for
> How does it work on XML database in your case?
We're using MySQL and eXist. The parts of the application that need to
talk to eXist do not use any ORM layer - its just straight PHP talking
directly to eXist (we're also using memcache so the performance is pretty
good in spite of this).