`
cgzhang
  • 浏览: 73771 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

How to remove unnecessary columns in Magento collection

PHP 
阅读更多
$orders = Mage::getModel('sales/order')->getCollection();
		
		$orders->getSelect()->reset('columns');
		
		$orders->getSelect()->columns(array('total_amount'=>'sum(grand_total)'));
分享到:
评论

相关推荐

    Mastering Clojure Macros(Pragmatic,2014)

    Level up your skills by taking advantage of Clojure's powerful macro system. Macros make hard things possible and ... And you'll use macros to remove unnecessary code and build new language features.

    eclipse 格式化模板

    Remove unnecessary '$NON-NLS$' tags Add unimplemented methods Sort members excluding fields, enum constants, and initializers Organize imports Format source code Correct indentation Remove redundant ...

    UE(官方下载)

    This tutorial will show you how to access the information you need in your browser by simply highlighting your text in the edit window and clicking your toolbar button How to install UE3 UE3 is the ...

    Web Animation Using JavaScript - js网页动画-英文原版

    how to leverage simple physics principles to make apps respond naturally to users’ input (just like motion behaves in the real world), how to exploit CSS transforms to create rich depth in ...

    Remove Unnecessary Tweets-crx插件

    语言:English 扩展删除了Tweets,从您的时间表中删除了其他人的喜好。 您在一些帐户中获取信息,但有些人喜欢有趣的推文。 如果你认为这是时候失去了,你不想看到'x喜欢这个'等。推文,你可以使用它。...

    全球畅销书Python Crash Course 2nd Edition by Eric Matthes 英文原生PDF

    Author Eric Matthes dispenses with the sort of tedious, unnecessary information that can get in the way of learning how to program, choosing instead to provide a foundation in general programming ...

    Python Crash Course 2nd Edition

    Author Eric Matthes dispenses with the sort of tedious, unnecessary information that can get in the way of learning how to program, choosing instead to provide a foundation in general programming ...

    Programming Clojure (The Pragmatic Programmers) 3rd Edition PDF

    learn how to write programs in a functional style, and when and how to use recursion to your advantage. Discover Clojure's unique approach to state and identity, techniques for polymorphism and open ...

    Learning React (2nd Edition)

    In Learning React , author Kirupa Chinnathambi brings his fresh, clear, and very personable writing style to help web developers new to React understand its fundamentals and how to use it to build ...

    Learning React A Hands-On Guide to Building Web Applications

    1 Introducing React 2 Building Your First React App...17 Avoiding Unnecessary Renders in React 18 Creating a Single-Page App in React Using React Router 19 Introduction to Redux 20 Using Redux with React

    开源项目-mdempsky-unconvert.zip

    开源项目-mdempsky-unconvert.zip,unconvert: tool to find and remove unnecessary type conversions in Go source

    使用 AbstractTableModel 构建Table 在表格中添加JButton按钮

    In the accompanying code listing, JTableButtonRenderer demonstrates how to do this. Even after creating a custom TableCellRenderer, you're still not done. The TableModel associated with a given ...

    RemoteSensing期刊word模板_endnote 模板 remote sensing,latex remote sensing 期刊模板

    Remember to remove any unnecessary text, such as the "How to Use this Template" paragraph. 9. Peer Review RemoteSensing journal typically follows a peer-review process, where expert reviewers assess...

    Git in Practice

    ■ Software developer with advanced Subversion knowledge (able to branch, merge, and set/get Subversion metadata variables) who wishes to learn how to use Git ■ Software developer who wishes to learn...

Global site tag (gtag.js) - Google Analytics