4 ms·
A good ORM is not a substitute for SQL. They help you with mundane things and you can still write SQL if you want. I like the approach of RedBeanPHP (www.redbea
by jstsch 12y ago
A good ORM is not a substitute for SQL. They help you with mundane things and you can still write SQL if you want. I like the approach of RedBeanPHP (www.redbeanphp.com).
- mgkimsal 12y ago+1 for redbean - most of my colleagues hate it, but I've found it's a good balance between getting rid of a lot of boilerplate, but not getting in the way when I need straight SQL.
- M4v3R 12y agoCame here to say this. RedBeanPHP is a great ORM with several advantages over stuff like Doctrine: * it doesn't require you to learn new language. The API is very simple * it encourages using SQL when needed. Need to add a special WHERE query? No problem. You want to make a custom select? Just use R::get() method * it doesn't alter your scheme more than it should. There is only one rule - linked table names (m:n relations) use an underscore. That's it.