src/bundles/Database/Model.php
public static function _fetch_handler( &$query )
	{
		// because the model is an object we force the fetch
		// arguments to obj so that we can still make use of
		// the group by and forward key functions
		$query->fetch_arguments = array( 'obj' );

		// Run the query and assign the reults
		// here we force the fetch arguments to assoc 
		// without this step model::assign will fail
		return static::assign( $query->handler->fetch( $query->build(), $query->handler->builder()->parameters, array( 'assoc' ) ) );
	}
public static function _fetch_handler( &$query )
	{
		// because the model is an object we force the fetch
		// arguments to obj so that we can still make use of
		// the group by and forward key functions
		$query->fetch_arguments = array( 'obj' );

		// Run the query and assign the reults
		// here we force the fetch arguments to assoc 
		// without this step model::assign will fail
		return static::assign( $query->handler->fetch( $query->build(), $query->handler->builder()->parameters, array( 'assoc' ) ) );
	}
public static function _fetch_handler ( & $ query ) { // because the model is an object we force the fetch // arguments to obj so that we can still make use of // the group by and forward key functions $ query -> fetch_arguments = array ( 'obj' ) ; // Run the query and assign the reults // here we force the fetch arguments to assoc  // without this step model::assign will fail return static :: assign ( $ query -> handler -> fetch ( $ query -> build ( ) , $ query -> handler -> builder ( ) -> parameters , array ( 'assoc' ) ) ) ; }
Fetch from the databse and created models out of the reults

@param DB\Query_Select		$query
@return array
Fetch from the databse and created models out of the reults