At the moment, there is no reason beyond the fact I hadn't thought to
do it.

I ideally would like be able to read a straight SQL-dump, so I guess
that would work, though I'd have to parse through the SQL first to
construct the arrays.

But those are the kind of philosophical changes that I'm looking for,
so thanks for your advice!

Casey



On Jan 24, 3:58 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Jan 24, 2008 2:48 PM, daphonz <[EMAIL PROTECTED]> wrote:
>
> > But when I try to use it to insert a line like:
>
> > INSERT INTO `categories`
> > (`id`,`parent_id`,`slug`,`name`,`teaser`,`description`,`model`,`options`,`ordering`,`lft`,`rght`,`enabled`,`type`,`level`,`created`,`modified`)
> > VALUES ('2','0','file-repository','File Repository','<p>&nbsp;</
> > p>',NULL,'Document','a:1:{i:0;s:
> > 1:\"0\";}','1','3','4','true','nested',NULL,'2007-11-01
> > 17:33:17','2007-11-01 17:33:17');
>
> Is there any reason you're not building up an array containing that
> information and using $this->Model->save($dataArray) ?
>
> --
> Chris Hartjes
> Internet Loudmouth
> Motto for 2008: "Moving from herding elephants to handling snakes..."
> @TheKeyBoard:http://www.littlehart.net/atthekeyboard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to