public static function getByField($field, $value, $cacheIndex = false)
    {
        $record = static::getRecordByField($field, $value, $cacheIndex);

        return static::instantiateRecord($record);
    }
public static function getByField($field, $value, $cacheIndex = false)
    {
        $record = static::getRecordByField($field, $value, $cacheIndex);

        return static::instantiateRecord($record);
    }
public static function getByField ( $ field , $ value , $ cacheIndex = false ) { $ record = static :: getRecordByField ( $ field , $ value , $ cacheIndex ) ; return static :: instantiateRecord ( $ record ) ; }
Get model object by field.

@param string $field Field name
@param string $value Field value
@param boolean $cacheIndex Optional. If we should cache the result or not. Default is false.
@return static|null
Get model object by field .