$cartList=$this->get('mapado.rest_client_sdk.foo')->getRepository('carts')->findAll(); // `carts` is the `key` defined in the model$cart=$this->get('mapado.rest_client_sdk.foo')->getRepository('carts')->find(1);