Declaring Active Record Classes Connecting to Databases Querying Data Accessing Data Saving Data Deleting Data Active Record Life Cycles Working with Transactions Optimistic Locks Working with Relational Data Saving Relations Cross-Database Relations Customizing Query Classes Selecting extra fields
Active Record provides an object-oriented interface for accessing and manipulating data stored in databases. An Active Record class is associated with a database table, an Active Record instance cor