diff --git a/src/DynamoDbModel.php b/src/DynamoDbModel.php index abc0d84..25949ed 100644 --- a/src/DynamoDbModel.php +++ b/src/DynamoDbModel.php @@ -352,7 +352,7 @@ public function setId($id) */ public function getClient() { - return static::$dynamoDb->getClient($this->connection); + return static::$dynamoDb->getClient($this->getConnectionName()); } /**