From 6d89a90b874e95d40fab20b98b6b61877b132a9d Mon Sep 17 00:00:00 2001 From: Jose Lorenzo Rodriguez Date: Sat, 11 Jan 2014 14:24:03 +0100 Subject: [PATCH] All TableTests passing except those requiring new features to be implemented --- Cake/ORM/Table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cake/ORM/Table.php b/Cake/ORM/Table.php index 3e30d466636..0c329e13e83 100644 --- a/Cake/ORM/Table.php +++ b/Cake/ORM/Table.php @@ -829,7 +829,7 @@ public function findThreaded(Query $query, array $options = []) { */ public function get($primaryKey, $options = []) { $key = (array)$this->primaryKey(); - $conditions = array_combine($key, $primaryKey); + $conditions = array_combine($key, (array)$primaryKey); $entity = $this->find('all', $options)->where($conditions)->first(); if (!$entity) {