Magento collection columns

piaoling  2012-08-13 11:59:47
$collection = Mage::getModel('catalog/product')->getCollection()
        ->addAttributeToSelect();
        $select = $collection->getSelect();
       $columns = $select->getPart('columns');
       $select->setPart('columns',array(array('e','entity_id','entity_id'),array('e','price','price')));
       Zend_Debug::dump($select->__toString());

类别 :  magento(258)  |  浏览(3857)  |  评论(0)
发表评论(评论将通过邮件发给作者):

Email: