diff --git a/src/ORM/Query.php b/src/ORM/Query.php index c0dc0100122..056b6eeea4f 100644 --- a/src/ORM/Query.php +++ b/src/ORM/Query.php @@ -72,7 +72,6 @@ class Query extends DatabaseQuery { */ protected $_useBufferedResults = true; - /** * Whether to hydrate results into entity objects * @@ -707,6 +706,7 @@ public function insert($columns, $types = []) { /** * {@inheritdoc} * + * @throws \BadMethodCallException if the method is called for a non-select query */ public function __call($method, $arguments) { if ($this->type() === 'select') {