Переглянути джерело

Update ExtractedEndpointData.php

Yannik Firre 3 роки тому
батько
коміт
a5633a1b1b
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      camel/Extraction/ExtractedEndpointData.php

+ 1 - 1
camel/Extraction/ExtractedEndpointData.php

@@ -154,7 +154,7 @@ class ExtractedEndpointData extends BaseDTO
 
                 // We'll replace with {id} by default, but if the user is using a different key,
                 // like /users/{user:uuid}, use that instead
-                $binding = static::getFieldBindingForUrlParam($route, $singularResource, $singularResourceParam);
+                $binding = static::getFieldBindingForUrlParam($route, $singularResource, 'id');
 
                 if (!$foundResourceParam) {
                     // Only the last resource param should be {id}