I am running into the issue: `No matching function...
# box-products
o
I am running into the issue:
No matching function [FINDWHERE] found
Here is a gist of the error log, stack trace and code. https://gist.github.com/ookma-kyi/25033298a88e8ac395ed22367dfddf2f
w
I think findwhere should be part of your ormservice. Since you are creating a virtual entity service here I think the following should work
result = user.findWhere(  criteria={ email = rc.email } )
You can leave out the entity name because you already defined that in your
user
injection DSL.
o
Quick couldn't figure out what to do with [findWhere] . The error returned was: Method does not exist on QueryBuilder [findWhere] We tried checking columns, aliases, scopes, and relationships locally. We also forwarded the call on to qb to see if it could do anything with it, but it couldn't.
Changed code
Copy code
var token = generateRandomToken();

		var now = Now();
		var expiration =DateAdd("d", 1, now);

        result = user.findWhere( criteria={ email = rc.email } )
			if( result ) {
				result.setToken( token )
				.setExpiration( expiration )
            	.save();
			}
		    relocate( uri = "/login" );
Any ideas?
w
According to the code you showed before you were not using quick but cborm, So no, no ideas
o
I think I am confusing Quick and cbORM... The only lines that changed are above and start at line 34 of the gist link I posted.