ORM for CodeIgniter 2.0 [closed]
开发者_运维技巧
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this questionWhat are some recommended ORM's for CodeIgniter? I have heard of Data Mapper and Propel. What are some that people have used and would recommend?
CI comes bundled with an Active Record class -- which is confusing because the Active Record pattern is technically an ORM, however the class is not -- it is merely a query builder. With that said, for basic websites I'd highly suggest using it.
Which ORM to actually use with CI is more a matter of personal preference though, DataMapper is more of a basic ORM and was actually written specifically for CI, but it won't give you all of the functionality found in something like Doctrine which I tend to think is one of the most full featured ORM's for PHP.
Overall you'll likely want to try out a few and find out which one suits your needs the best, there is a lot of information about ORM's for PHP on the PHP Info page right here on StackOverflow.
精彩评论