public static function load($id, $options = [], $fetchOptions = [])
    {
        $options = ['conditions' => [static::definition()->key() => $id]] + $options;
        return static::find($options)->first($fetchOptions);
    }
public static function load($id, $options = [], $fetchOptions = [])
    {
        $options = ['conditions' => [static::definition()->key() => $id]] + $options;
        return static::find($options)->first($fetchOptions);
    }
public static function load ( $ id , $ options = [ ] , $ fetchOptions = [ ] ) { $ options = [ 'conditions' => [ static :: definition ( ) -> key ( ) => $ id ] ] + $ options ; return static :: find ( $ options ) -> first ( $ fetchOptions ) ; }
Finds a record by its ID.

@param  mixed $id           The id to retreive.
@param  array $fetchOptions The fecthing options.
@return mixed               The result.
Finds a record by its ID .