@@ -332,7 +332,7 @@ trait QueryTrait {
/**
* Get the first result from the executing query or raise an exception.
*
- * @throws \Cake\Datasource\RecordNotFoundException When there is no first record.
+ * @throws \Cake\Datasource\Exception\RecordNotFoundException When there is no first record.
* @return mixed The first result from the ResultSet.
*/
public function firstOrFail() {
@@ -20,7 +20,6 @@ use Cake\Datasource\QueryTrait;
use Cake\ORM\EagerLoader;
use Cake\ORM\ResultSet;
use Cake\ORM\Table;
-use Cake\ORM\Exception\RecordNotFoundException;
use JsonSerializable;
@@ -905,8 +905,6 @@ class Table implements RepositoryInterface, EventListenerInterface {
* {@inheritDoc}
- * @throws \Cake\ORM\Exception\RecordNotFoundException if no record can be found given
- * a primary key value.
* @throws \InvalidArgumentException When $primaryKey has an incorrect number of elements.
public function get($primaryKey, $options = []) {