A PHP ORM extension copy from ThinkPHP