3 ms·
This. Use a good one unless you want to own half of a poor one.
by erik_seaberg 3y ago
This. Use a good one unless you want to own half of a poor one.
- wredue 3y agoThis is just a claim that everyone who advocates for ORMs makes, but it’s not reality.
- erik_seaberg 3y agoThe third time I have to figure out whether to write obj.setCreatedAt(rs.getTimestamp("created_at", calendar)) or obj.setCreatedAt(rs.getLong("created_at")) I'm going to write code to look at the schema and the setter and figure it out automatically. And that’s where new ORMs come from.
- isbvhodnvemrwvn 3y agoQuery builders solve those problems without the complexity of ORMs.
- mschuster91 3y agoQuery builders tend to get tediously verbose compared to a plain old `$entityManager->persist($object)`