xPDOObject

Most of the magic of xPDO is packed into the class xPDOObject. This class is the base persistence class which every domain class and table class you create with xPDO will derive it's properties and behavior from. xPDOObject is a domain class and an Active Record pattern implementation, where each instance represents a row in a specific database table.

  1. Static Object Loaders
    1. load
    2. loadCollection
    3. loadCollectionGraph
    4. Using Custom Loader Classes
  2. Configuration Accessors
    1. getOption
    2. setOption
  3. Field Accessors
    1. get
    2. set
    3. toArray
    4. fromArray
    5. toJSON
    6. fromJSON
  4. Related Object Accessors
    1. getOne
    2. getMany
    3. addOne
    4. addMany
  5. Persistence Methods
    1. save
    2. remove
  6. Metadata Accessors
    1. getSelectColumns
    2. getPK
    3. getPKType
    4. getFKClass
    5. getFKDefinition
    6. getFieldName
  7. Validation
    1. addValidationRule
    2. removeValidationRules
    3. getValidator
    4. validate
    5. isValidated
  8. State Accessors
    1. isLazy
    2. isDirty
    3. isNew

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