Simple PHP ORM class