Yeah, that's the bit that has me confused, also. Even before seeing your comment, I was wondering why it would set the value, then create another UUID. I don't get it.
On Tue, Jan 20, 2009 at 6:25 PM, Rob Wilkerson <r...@robwilkerson.org> wrote: > > On Tue, Jan 20, 2009 at 1:42 PM, brian <bally.z...@gmail.com> wrote: >> I confess that I'm really not at all clear about what Cake is doing >> here. That doesn't make sense to me. It appears to be deliberately >> including the UUID twice. > > Yes and no. I've done a little more digging and the method is taking > two parameters properly: the ID of the new event that got created and > an array containing the model name and ID of the attraction object ( > 'Attraction' => '49414268-8a90-4497-856a-1b293b196446' ). This all > looks great. The problem seems to be introduced here: > > 01287 if ((is_string($row) && (strlen($row) == 36 || strlen($row) == > 16)) || is_numeric($row)) { > 01288 $values = array( > 01289 $db->value($id, $this->getColumnType($this->primaryKey)), > 01290 $db->value($row) > 01291 ); > 01292 if ($isUUID) { > 01293 $values[] = $db->value(String::uuid()); > 01294 } > > Specifically, my problem is that the data passes both tests. The first > test properly sets the value to the UUID for the attraction while the > second test just pushes a brand new UUID on the values array. I'll see > whether I can get any answers on the IRC channel. > > Thanks for getting me started with the code snippet. > > -- > Rob Wilkerson > http://robwilkerson.org > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---