Models and the Model Layer
The Model layer in Alloy is fairly loosely defined compared to the rest of the framework. There are no database access classes or objects in the Alloy framework library itself. Instead, Alloy uses the Spot DataMapper library as its default ORM, but this can be replaced with something like Doctrine or Propel in your own project if desired. This way, none of the internal components are coupled to a specific ORM or database access library, and you are free to choose the one you like using best.