ddeboer/DdeboerSalesforceMapperBundle — Issue #3: Creating queries through mapper findOneBy
Author: legetz
Created: 2012-02-28 13:54:16+00:00
State: open

First of all, thanks for the nice bundle :)

I found a bug from findOneBy (at least) method:
1. Call it by providing array with the key which datatype is not a string in SF ( like Number(18, 0) )
2. It returns error: value of filter criterion for field 'Myfield__c' must be of type double and should not be enclosed in quotes
3. Query looks like this: SELECT from MyObject__c where Myfield__c = '1'
4. Correct one should be: SELECT from MyObject__c where Myfield__c = 1

It would be nice if I could determine datatype with using annotation at model class?