![]() |
Support for ODM and ORM in CI - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29) +--- Thread: Support for ODM and ORM in CI (/showthread.php?tid=63621) |
Support for ODM and ORM in CI - Priyank - 11-20-2015 It is good, if CI support ODM and ORM for database modeling. RE: Support for ODM and ORM in CI - kilishan - 11-20-2015 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. RE: Support for ODM and ORM in CI - Hamed - 12-07-2015 I think It would be better to support NOSQL DBMS like MongoDB. RE: Support for ODM and ORM in CI - Priyank - 03-19-2016 (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. Hi Kilishan True, currently CI does not support NoSQL like MongoDB. Earlier I was using https://github.com/intekhabrizvi/Codeigniter-mongo-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 RE: Support for ODM and ORM in CI - jaynarayan - 06-25-2016 @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 |