| 50 | | $allMatches = Doctrine_Query::create()->from('sfGuardUser u')->leftJoin('u.Profile p')->leftJoin('u.' . $relation . ' e WITH e.id = ?', array($object->id))->addWhere('p.first_name LIKE ? OR p.last_name LIKE ? OR p.fullname LIKE ?', array("$name%", "$name%", "$name%"))->limit(sfConfig::get('app_searchusers_limit', 10))->execute(); |
|---|
| | 50 | $allMatches = Doctrine_Query::create() |
|---|
| | 51 | ->from('sfGuardUser u') |
|---|
| | 52 | ->leftJoin('u.Profile p') |
|---|
| | 53 | ->leftJoin('u.' . $relation . ' e WITH e.id = ?', array($object->id)) |
|---|
| | 54 | ->addWhere('p.first_name LIKE ? OR p.last_name LIKE ? OR p.fullname LIKE ?', array("$name%", "$name%", "$name%")) |
|---|
| | 55 | ->limit(sfConfig::get('app_searchusers_limit', 10)) |
|---|
| | 56 | ->execute(); |
|---|
| | 57 | |
|---|