adding patch for model text committed in [7799]

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7800 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2008-10-30 00:11:32 +00:00
parent 588f92ca31
commit 53296d975c

View file

@ -1234,7 +1234,7 @@ class Model extends Overloadable {
$newData = $newValues = array();
foreach ($data as $row) {
foreach ((array)$data as $row) {
if (($isUUID && (strlen($row) == 36 || strlen($row) == 16)) || is_numeric($row)) {
$values = array(
$db->value($id, $this->getColumnType($this->primaryKey)),