Created
July 9, 2015 09:52
-
-
Save fullybaked/5c0603b26e9700ea31b6 to your computer and use it in GitHub Desktop.
Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function findByFullName($search_term) { | |
$users->find() | |
->where(['CONCAT(UserProfiles.first_name, " ", UserProfiles.lastname)' => $search_term]); | |
->contain(self::$applicant_contain) | |
->order(['Users.primary_role' => 'DESC', 'Users.modified' => 'DESC']) | |
->limit(25); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment