Hi,
I’m trying to extend the generated model for my datatable to add a custom search function:
public static function findByEmail($email) {
$query = new BackendlessDataQuery();
$query->setWhereClause(“email_address=’” . $email. “’”);
$collection = Backendless::$Persistence->of( ‘clients’ )->find( $query );
return $collection;
}
The class is being used in a custom event.
However, when the event is triggered, I get a "Fatal error: call to undefined method.
Any thoughts on why this isn’t being picked up? Or an alternative approach I can take?
Oh: and happy Christmas!
PS. In your forum category, you could do with adding a PHP option
Regards,
Andy