Browse Source

Merge pull request #15397 from TerryKern/patch-1

Correct throws annotation
Mark Story 5 years ago
parent
commit
64ed4da7de
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/ORM/Table.php

+ 2 - 2
src/ORM/Table.php

@@ -1585,8 +1585,8 @@ class Table implements RepositoryInterface, EventListenerInterface, EventDispatc
      * $article = $articles->get(1, ['contain' => ['Users', 'Comments']]);
      * ```
      *
-     * @throws \Cake\Datasource\Exception\InvalidPrimaryKeyException When $primaryKey has an
-     *      incorrect number of elements.
+     * @throws \Cake\Datasource\Exception\InvalidPrimaryKeyException When the given `$primaryKey`
+     * was not found in the table.
      */
     public function get($primaryKey, $options = [])
     {