SWAT Model 2 is the replacement for SWAT Model (SWAT/model: main class
SModel). It is the ORM system provided by our common libraries. It supports interaction with databases and XML. For databases, it supports the usual CRUD operations, in addition to foreign keys and joins, transactions and raw queries.