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

addAttributeToFilter() #27

Open
yusrub opened this issue Jul 21, 2016 · 0 comments
Open

addAttributeToFilter() #27

yusrub opened this issue Jul 21, 2016 · 0 comments

Comments

@yusrub
Copy link

yusrub commented Jul 21, 2016

Hi,

I am working on mongo and after importing all mysql product attributes from mysql to mongo-db and it worked smooth and when I checked the mongo-db, found different attributes have different data type few are (Int32,String...).

So when we add custom attributes like discontinued using the function addAttributeToFilter then I did not get records and after reviewing all things found that there is difference of data type as I am passing this custom attribute as string and it is Int32 in mongo-db due to that records did not found as there is mis-match of data type.

So in my opinion, there is an functionality is missing when we add to filter an custom attribute to addAttributeToFilter which used to _buildDocumentFilter. So before building filter it should first convert that filter it to data-type which we set in mongo-db while importing.

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

1 participant