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

Building wrong query #114

Open
dkaswan opened this issue Dec 20, 2014 · 1 comment
Open

Building wrong query #114

dkaswan opened this issue Dec 20, 2014 · 1 comment

Comments

@dkaswan
Copy link

dkaswan commented Dec 20, 2014

20-12-2014 09-13-16 pm

I've just installed Speckcommerce via GitClone->composerInstall->SpeckInstaller, and on home page getting this error.
In file '\speck\vendor\speckcommerce\speck-catalog\src\SpeckCatalog\Mapper\Category.php' on line 27:
System replaces content of $joinString ('catalog_category_website.category_id = catalog_category.category_id') in join statement, so final query is exactly:

SELECT "catalog_category"., "catalog_category_website". FROM "catalog_category" INNER JOIN "catalog_category_website" ON "catalog_categ"or"y_website"."categ"or"y_id" = "catalog_categ"or"y"."categ"or"y_id" WHERE "website_id" = '1' AND "parent_category_id" IS NULL

Using new \Zend\Db\Sql\Expression($joinString) is fixing the issue but why system strangely replacing 'or'?

@Perfect-Web
Copy link

same happens to me, any ideas ?

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

2 participants