for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace App\Model\Finder;
use App\Model\User;
use Ronanchilvers\Orm\Finder;
use ClanCats\Hydrahon\Query\Expression;
/**
* Finder for user models
*
* @author Ronan Chilvers <[email protected]>
*/
class UserFinder extends Finder
{
* Get a user by hash
* @param string $hash
* @return \App\Model\User
public function forHash($hash)
return $this->select()
->where(User::prefix('hash'), $hash)
->one();
}