public static function getAllByContextObject(ActiveRecord $Record, $options = [])
    {
        return static::getAllByContext($Record::$rootClass, $Record->getPrimaryKeyValue(), $options);
    }
public static function getAllByContextObject(ActiveRecord $Record, $options = [])
    {
        return static::getAllByContext($Record::$rootClass, $Record->getPrimaryKeyValue(), $options);
    }
public static function getAllByContextObject ( ActiveRecord $ Record , $ options = [ ] ) { return static :: getAllByContext ( $ Record :: $ rootClass , $ Record -> getPrimaryKeyValue ( ) , $ options ) ; }
Get all models in the database by passing in an ActiveRecord model which has a 'ContextClass' field by the passed in records primary key.

@param ActiveRecord $Record
@param array $options
@return static[]|null Array of instantiated ActiveRecord models returned from the database result.
Get all models in the database by passing in an ActiveRecord model which has a ContextClass field by the passed in records primary key .