diff --git a/src/ORM/Table.php b/src/ORM/Table.php index 1f5d1890151..2c51ae2c048 100644 --- a/src/ORM/Table.php +++ b/src/ORM/Table.php @@ -1182,6 +1182,8 @@ protected function _processSave($entity, $options) { * @param \Cake\ORM\Entity the subject entity from were $data was extracted * @param array $data The actual data that needs to be saved * @return \Cake\ORM\Entity|boolean + * @throws \RuntimeException if not all the primary keys where supplied or could + * be generated when the table has composite primary keys */ protected function _insert($entity, $data) { $primary = (array)$this->primaryKey();