Skip to main content
added 85 characters in body
Source Link
Ilja
  • 1.3k
  • 2
  • 17
  • 32

change your xml fromconfig.xml to

    <?xml version="1.0"?>
    <config>
     <resource_order_collection>   <modules>
            <XYZ_Reports>
        XYZ_Reports_Model_Resource_Order_Collection        <version>0.1.0</version>
            </XYZ_Reports>
        </resource_order_collectionmodules>

to

 <resource_order_collection>XYZ_Reports_Model_Resource_Order_Collection<       <global>
            <models>
                <reports_resource>
                    <rewrite>
                        <order_collection>XYZ_Reports_Model_Resource_Order_Collection</resource_order_collection>order_collection>
                    </rewrite>
                </reports_resource>
            </models>
        </global>
    </config>

same with order_collection

change your xml from

              <resource_order_collection>
                    XYZ_Reports_Model_Resource_Order_Collection
              </resource_order_collection

to

 <resource_order_collection>XYZ_Reports_Model_Resource_Order_Collection</resource_order_collection>

same with order_collection

change your config.xml to

    <?xml version="1.0"?>
    <config>
        <modules>
            <XYZ_Reports>
                <version>0.1.0</version>
            </XYZ_Reports>
        </modules>
        <global>
            <models>
                <reports_resource>
                    <rewrite>
                        <order_collection>XYZ_Reports_Model_Resource_Order_Collection</order_collection>
                    </rewrite>
                </reports_resource>
            </models>
        </global>
    </config>
Source Link
Ilja
  • 1.3k
  • 2
  • 17
  • 32

change your xml from

              <resource_order_collection>
                    XYZ_Reports_Model_Resource_Order_Collection
              </resource_order_collection

to

 <resource_order_collection>XYZ_Reports_Model_Resource_Order_Collection</resource_order_collection>

same with order_collection