Jump to main content Jump to doc navigation

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
  2. _loadRows
  3. _loadInstance
  4. _loadCollectionInstance
  5. load
  6. loadCollection
  7. loadCollectionGraph
  8. Using Custom Loader Classes
  9. Configuration Accessors
  10. getOption
  11. setOption
  12. Field Accessors
  13. get
  14. set
  15. toArray
  16. fromArray
  17. toJSON
  18. fromJSON
  19. Related Object Accessors
  20. getOne
  21. getMany
  22. addOne
  23. addMany
  24. Persistence Methods
  25. save
  26. remove
  27. Metadata Accessors
  28. getSelectColumns
  29. getPK
  30. getPKType
  31. getFKClass
  32. getFKDefinition
  33. getFieldName
  34. Validation
  35. addValidationRule
  36. removeValidationRules
  37. getValidator
  38. validate
  39. isValidated
  40. State Accessors
  41. isLazy
  42. isDirty
  43. isNew