xPDO, the Class

The xPDO class itself serves many purposes, all of which aim to provide a core set of features to make implementing an object model quick and painless, and to do so without limiting how you implement it. Let's take a look at the three main roles an instance of xPDO serves, and then we'll look at different ways to use it.

Since xPDO as a framework is primarily a tool for working with relational data, it makes sense that the first role we'll explore is that of a wrapper class for PDO.

  1. As PDO Wrapper
  2. As Service Layer
  3. As Object and Relational Mapper
  4. The xPDO Constructor
    1. Hydrating Fields

Suggest an edit to this page on GitHub (Requires GitHub account. Opens a new window/tab).