Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

category_ids is not supported since magento 1.4 #18

Closed
southerncomputer opened this issue Nov 3, 2015 · 2 comments
Closed

category_ids is not supported since magento 1.4 #18

southerncomputer opened this issue Nov 3, 2015 · 2 comments

Comments

@southerncomputer
Copy link

PHP Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'e.category_ids' in 'field list'' in /var/www/html/scw.com/lib/Zend/Db/Statement/Pdo.php:228

Caused by $staticFields[0]='category_ids' being passed to 👍

protected function _getProducts(array $staticFields, $productIds = null, $lastProductId = 0)
{
$readAdapter = $this->_getReadAdapter();

    $select = $readAdapter->select()
        ->useStraightJoin(true)
        ->from(
            array('e' => $this->getTable('catalog/product')),
            array_merge(array('entity_id', 'type_id', 'attribute_set_id', 'entity_type_id'), $staticFields)
        );

"Magento removing the field “category_ids” from catalog_product_entity table in version 1.4 "

unset($staticFields[0]); is not a graceful way to patch this!

@hmphu
Copy link

hmphu commented Mar 13, 2016

hi @southerncomputer , This issue is fixed by merge request #19

@romainruaud
Copy link
Contributor

@hmphu is right. I close the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants