Introduction
Objectiphy is a simple data mapper ORM - inspired by (and somewhat compatible with) the Doctrine project, with the aim of being easy to learn, intuitive, and flexible.
Create repositories using the repository factory:
You can use simple criteria in an array to load entities:
Or use more complex criteria to limit which properties of which records are returned using the object-oriented query builder, which closely resembles standard SQL syntax (but using classes and properties instead of tables and columns):
Inserting or updating entities is also very easy (Objectiphy keeps track of changes to entities that it loaded, so will only save the things that have changed):
Features
option of fetching unbound (scalar) results
use any MySQL function you like in custom queries
mark properties as read only
custom collection classes (for collections of child objects)
handles recursive object relationships
This library has the ability to insert, update, and delete records in your database. Use with care!
Last updated
Was this helpful?