Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | protected function _prepareCollection() |
||
24 | { |
||
25 | $collection = Mage::getModel('yandexdelivery/shipment')->getCollection(); |
||
26 | $collection->getSelect()->join( |
||
27 | array('table_alias' => Mage::getConfig()->getTablePrefix() . 'sales_flat_order'), |
||
28 | 'main_table.order_id = table_alias.entity_id', |
||
29 | array('increment_id' => 'table_alias.increment_id') |
||
30 | ); |
||
31 | $this->setCollection($collection); |
||
32 | return parent::_prepareCollection(); |
||
33 | } |
||
34 | |||
53 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.