MidCOM DBA object method new_query_builder
static midcom_core_querybuilder new_query_builder ();
Returns a initialized querybuilder instance for the current DBA base type. This function is usually called statically.
Important note for inherited classes
new_query_builder will always return a QB bound to the base DBA type. This is important if you are subclassing DBA classes again, where DBA has no way to determine the actual class you called it using the static instance operator. You need to override new_query_builder in your subclasses with something like this to make this work again (or use the DBFactory instead):
function new_query_builder()
{
return $_MIDCOM->dbfactory->new_query_builder(__CLASS__);
}
