src/Titon/Model/Model.php
public static function findBy($field, $value, array $options = []) {
        if ($record = static::select()->where($field, $value)->first($options)) {
            return $record;
        }

        return new static();
    }
public static function findBy($field, $value, array $options = []) {
        if ($record = static::select()->where($field, $value)->first($options)) {
            return $record;
        }

        return new static();
    }
public static function findBy ( $ field , $ value , array $ options = [ ] ) { if ( $ record = static :: select ( ) -> where ( $ field , $ value ) -> first ( $ options ) ) { return $ record ; } return new static ( ) ; }
Will attempt to find a record by a field's value and return a model instance with data pre-filled.
If no record can be found, an empty model instance will be returned.

@param string $field
@param mixed $value
@param array $options
@return \Titon\Model\Model
Will attempt to find a record by a field s value and return a model instance with data pre - filled . If no record can be found an empty model instance will be returned .