private function prepSelectRelTable(Table &$relTable, array $callArgs) {
        foreach ($callArgs[0] as $method => $args) {
            if ($method === 'where') continue;
            if (method_exists($relTable, $method)) {
                $args = is_array($args) ? $args : array($args);
                $relTable = call_user_func_array(array($relTable, $method),
                        $args);
            }
        }
        return $relTable;
    }
private function prepSelectRelTable(Table &$relTable, array $callArgs) {
        foreach ($callArgs[0] as $method => $args) {
            if ($method === 'where') continue;
            if (method_exists($relTable, $method)) {
                $args = is_array($args) ? $args : array($args);
                $relTable = call_user_func_array(array($relTable, $method),
                        $args);
            }
        }
        return $relTable;
    }
private function prepSelectRelTable ( Table & $ relTable , array $ callArgs ) { foreach ( $ callArgs [ 0 ] as $ method => $ args ) { if ( $ method === 'where' ) continue ; if ( method_exists ( $ relTable , $ method ) ) { $ args = is_array ( $ args ) ? $ args : array ( $ args ) ; $ relTable = call_user_func_array ( array ( $ relTable , $ method ) , $ args ) ; } } return $ relTable ; }
Prepares the related table for select, calling limit and orderBy if required
@param \DBScribe\Table $relTable
@param array $callArgs
@return \DBScribe\Table
Prepares the related table for select calling limit and orderBy if required