public static function queryBuilder($alias = null) { $obj = static::metaInstance(); return new ModelQueryBuilder($obj, $obj->_modelDefinition->db, $alias); }