O'Reilly logo

SQL Antipatterns by Bill Karwin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Antipattern: The Model Is an Active Record

In simple applications, you don’t need much custom logic in a model. It’s relatively straightforward to match the fields of a model object to the columns of a single table in a database. This is a type of object-relational mapping. All you need the object to do is know how to create a row in the table, read the row, and update and delete it—the basic CRUD operations.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required