Welcome Guest, Not a member yet? Register   Sign In
Support for ODM and ORM in CI
#1

It is good, if CI support ODM and ORM for database modeling.
Reply
#2

I don't believe there are any plans for writing our own ORM, but there has been talk of making it simple to use a third-party one, like Doctrine. I'm not exactly sure what we could do to make that integration simpler than it already is, honestly, but haven't started looking into it, either.

IIRC, ODM's are interfaces between document-based databases, like MongoDB. Since we don't support Mongo directly, or any other NoSQL db, I can't imagine this happening, either.
Reply
#3

I think It would be better to support NOSQL DBMS like MongoDB.
Reply
#4

(11-20-2015, 12:00 PM)kilishan Wrote: I don't believe there are any plans for writing our own ORM, but there has been talk of making it simple to use a third-party one, like Doctrine. I'm not exactly sure what we could do to make that integration simpler than it already is, honestly, but haven't started looking into it, either.

IIRC, ODM's are interfaces between document-based databases, like MongoDB. Since we don't support Mongo directly, or any other NoSQL db, I can't imagine this happening, either.

Hi Kilishan

True, currently CI does not support NoSQL like MongoDB. Earlier I was using https://github.com/intekhabrizvi/Codeign...go-library library in CI for using MongoDb but still Active record library return result in an array. Most of developers are more interested in using Object instead of Array.

Regards,
Priyank
Reply
#5

(This post was last modified: 06-25-2016, 10:38 AM by jaynarayan.)

@Priyank

Have you tried this method?

custom_result_object($class_name)

Parameters:
$class_name (string) – Class name for the
resulting rows

Returns array of objects
          Heart  love codeigniter Heart
          Learning  best  practices
     Rate my post if you found it helpfull
Reply




Theme © iAndrew 2016 - Forum software by © MyBB